Forum Jump :

Author Message


Posts: 1
Rank:


Level: Member

Country: au
Location:
Occupation:
Age: 22
In-game name:

 
#1 Posted at 2014-11-14 10:38        
     
I've been searching around for about the last hour and I can't figure out how to put a unit into the firing position of a vehicle [as added in the recent patch I.E the sides of the MH-9] I've tried different "this moveIn" examples with no luck so far. Some help would be greatly appreciated.

Loading, Please Wait...

Author Message

Tajin  



Posts: 433
Rank:


Level: Member

Country: de
Location: Bavaria
Occupation: Communications Designer
Age: 35
In-game name: Tajin

 
#2 Posted at 2014-11-14 11:17        
     
Never tried it, but this function should do the trick:
fnc_enablePersonTurrets = {
	{
		 _role = assignedVehicleRole _x;
		 if ((_role select 0) == "Cargo") then {
		 	if (count _role > 1) then {
		 		_this enablePersonTurret [_role select 1, true];
		 	};
		 };
	} forEach crew _this;
};

use:
yourVehicle call fnc_enablePersonTurrets;

For this, the suitable positions in the vehicle have to be occupied first.

There are a lot of very capable people on this forum, willing to spend some of their time to help you out. So if you have a problem, it surely isn't too much to ask that you atleast take the time to describe it properly. Thanks.





Tags: Firing, Position