Jump to content
WurschtBanane

Spawn empty vehicle and set its direction

Recommended Posts

Hi. I am spawning a jet via trigger by using this: _vehicleObject = "B_Plane_CAS_01_F" createVehicle (getMarkerPos "marker_spawn_A10");, but its always pointing towards 180. I want it to look towards 270 or so... you get it.

 

Can anyone help me please? I know this is pretty basic and there is a thread covering this somewhere probably... couldnt find it though.

Share this post


Link to post
Share on other sites

if (isserver) then {

 

_vehicleObject = createVehicle ["B_Plane_CAS_01_F", getmarkerpos "marker_spawn_A10 ", [], 0, "NONE"];
_vehicleObject setdir 270;    //check your angle for your position;

 

};  

 

I write >>> if (isserver) { yourscript  };  // for no duplication vehicle by player in MP

Good Edition by;))))))

 

Share this post


Link to post
Share on other sites

something to note:

when creating the vehicle, you'll need to use setPos afterwards to get an exact position if that is important.
 

_vehicleObject = "B_Plane_CAS_01_F" createVehicle (getMarkerPos "marker_spawn_A10");_vehicleObject setPos getMarkerPos "marker_spawn_A10";_vehicleObject setDir 270;

 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×