Jump to content
Sign in to follow this  
Joe Miller

Action

Recommended Posts

Hello! I need help with action command:

From the CMDREF:

soldierOne action ["eject", vehicle soldierOne]

In the sample they teach how to order to get out. But i need a script that when called order a unit to get in to a vehicle.

IE:

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

_unit = _this select 0

;on activation

_unit action ["getin",taxi"]

Where taxi is the name of the car. How can i do this? the code i tried doesn't work

Share this post


Link to post
Share on other sites

Actually, to achieve this, you should use

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

_unit assignascargo taxi

[_unit] ordergetin true

exit

this way , once you script is launched, the AI unit will be assigned to the cargo position of a vehicule, and the ordergetin true will force it to go where it is assigned to.

of course, assignasdriver , assignascommander , assignasgunner can be used instead of assignascargo , depending on what position you want the AI unit to go

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  

×