OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Captain Crunch on 04 Apr 2007, 14:19:30
-
Hi everyone.
I am trying to figure out how to move 2 units as gunners into a UH-60 using the command MoveInGunner. I have entered in both units' Init Field:
This MoveinGunner Chopper
But one doesn't obey. I have tried with MoveInGunnerDoor and MoveInDoorGunner but there is no such command. I have also tried MoveInTurret but the game crashed. Can anyone help me please. Thank You in adance.
-
I don't think they made the second gun AI compatible
-
Crunch, MoveInTurret is your firend, but use correctly! See the BIKI for details!
unit MoveInTurret uh60 is not enough! You must define the number of MG.
-
Hmmm. Maybe. But I tried a version where the chopper is grounded and when I enter the chopper as crew chief, I can order my soldier to enter as door gunner. And when I enter the chopper as door gunner I can order my soldier to get in as crew chief. So theoretically it should be possible. There might be a way.
@bardosy
Hi, yes I know. Still I am not sure how to use this. It should like this:
MySoldier MoveInTurret [Chopper, [0, 0]]
I entered this snippet and when I tried to play, the game crashed. There could be something wrong with two zeros? I found this example online but there are no explanations to how to use it correctly. I found this short syntax explanation but am still not sure.
soldier moveInTurret [vehicle, turret path]
I'll try somethings.
-
I found it!
I looked on the very well detailed explanations on this site:
http://community.bistudio.com/wiki/moveInTurret (http://community.bistudio.com/wiki/moveInTurret)
The correct syntax for the UH-60 is:
for the unit to get in the first turret:
Soldier MoveInTurret [Chopper, [0]]
and for the unit to get in the second turret:
Soldier MoveInTurret [Chopper, [1]]
-
Weird commands described in both the OFPEC COMREF and the Biki. I don't get why you want someone to move in [0,0] or the first turret of the first turret (what the ..?). Haven't been able to find a working example of when to use this.
It's probably something that should be changed in the COMREF. ArmA does give an error when you use:
soldier moveInTurret [chopper,0]
The 2nd parameter has to be an array (error expected array not ..). Again, I do not know why you need an array for that.