Jump to content
Sign in to follow this  
iceman77

CreateVehicle

Recommended Posts

I have a trigger set to radio alpha.It creates a vehicle on an invisible H pad named "armor".When the vehicle spawns ,it always faces north.

How do i set the direction the vehicle faces when it spawns in?

TRIGGER:

RadioAlpha

Condition:this

On act:m113 = "m113" createvehicle getpos "armor";

any help would be appreciated.. crazy_o.gif

Share this post


Link to post
Share on other sites

Hi Texas*BDA*,

   If you're talking about a fixed direction; that should be easy enough. Just add m113 setDir <number between 0 and 360>;

i.e. make it face east.

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

m113 = "M113" createvehicle getpos armor;m113 setDir 90

Share this post


Link to post
Share on other sites

There is also a way you can randomly set its direction (good for abandoned cities and stuff) but i can't remember. PM me or reply here if you really want it.

Share this post


Link to post
Share on other sites

...for random direction use:

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

m113 setdir random(360);

regards,

zap

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  

×