Jump to content
Sign in to follow this  
LizardX

Creating vehicles with crew

Recommended Posts

Shortly: I can create soldiers with "createUnit". I can create empty vehicles with "createVehicle". But how can I create a vehicle with its crew onboard?

Share this post


Link to post
Share on other sites

Ok let's see if I can give you a good scripplet

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

_newVehicle = "typename" createVehicle [Pos];

_newVehicle lock false;

#DRIVER

"typename" createUnit [pos,_tryGroup,"tempman=this"];

tempman assignAsDriver _newVehicle;

tempman moveInDriver _newVehicle;

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
Sign in to follow this  

×