Joe Miller 0 Posted July 26, 2005 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
sanctuary 19 Posted July 26, 2005 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