Home   Help Search Login Register  

Author Topic: Name of the M2A2 Rocket...  (Read 575 times)

0 Members and 1 Guest are viewing this topic.

Knut Erik

  • Guest
Name of the M2A2 Rocket...
« on: 30 Jun 2003, 23:41:28 »
Okay. I need some major help here..
I want the camera to follow the M2A2 TOW rocket.

_Rocket = NearestObject [Tank3," ??? "]

I need to know what the name of the M2A2 rocket is in order to make the camera follow it.

Does anyone have a clue??  :-\

Wolf

  • Guest
Re:Name of the M2A2 Rocket...
« Reply #1 on: 30 Jun 2003, 23:54:26 »
Well, the only one here under this weapons and ammo list is this

HellfireLauncherM2A2

So I guess that's it.

Knut Erik

  • Guest
Re:Name of the M2A2 Rocket...
« Reply #2 on: 01 Jul 2003, 00:09:44 »
No. I've allready tried it  :-\

_Rocket = NearestObject [Tank3,"HellFireLauncherM2A2"]

Thanks for taking your time to help me though  :thumbsup:

Offline Killswitch

  • Members
  • *
  • Peace, cheese and ArmA
Re:Name of the M2A2 Rocket...
« Reply #3 on: 01 Jul 2003, 17:59:53 »
The name of the "rocket" is "AT3".

Hint: add a "fired" event handler to any vehicle for wich you wish to find out the ammo names of. Try this one in a Bradley's init field:

Code: [Select]
this addEventHandler ["fired", { hint format ["You fired a shot of %1",_this select 4] }]
Then, jump in and fire away  ;D

Knut Erik

  • Guest
Re:Name of the M2A2 Rocket...
« Reply #4 on: 01 Jul 2003, 21:58:16 »
Strange.... Why isn't this working???

Tank3 fire "HellfireLauncherM2A2"
_Rocket = NearestObject [Tank3,"AT3"]
_camera camSetTarget _Rocket
_camera camSetRelPos [0,10,1]
_camera camSetFOV 0.700
_camera camCommit 0


It should work, right?

Knut Erik

  • Guest
Re:Name of the M2A2 Rocket...
« Reply #5 on: 02 Jul 2003, 00:02:35 »
Guys, guys..

I've got it to work!! You'll only have to add a tiny delay.

Tank3 fire "HellfireLauncherM2A2"
~0.01
_Rocket = NearestObject [Tank3,"AT3"]
_camera camSetTarget _Rocket
_camera camSetRelPos [0,10,1]
_camera camSetFOV 0.700
_camera camCommit 0


Now it works like a charm.
Thanks a lot for that tip Killswitch.
VERY usefull indeed  ;)

*Topic solved n' locked*