demonhunter212 0 Posted May 28, 2006 Okay in this script I used in a trigger <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">"LSR_sqleader" createUnit [getpos Player, player, {TempReference = this}, 1, "CAPTAIN"] ~1 ; This next line takes the unit and creates a new group [TempReference] join grpNull "LSR_Ranger" createUnit [getpos Player, TempReference, {}, 0.75, "PRIVATE"] "LSR_M249_ai" createUnit [getpos Player, TempReference, {}, 0.75, "PRIVATE"] "LSR_Ranger_Medic" createUnit [getpos Player, TempReference, {}, 0.75, "PRIVATE"] "LSR_Ranger_Gl" createUnit [getpos Player, TempReference, {}, 0.75, "PRIVATE"] it works fine but when I put tank names.......(INQ M1A2) into the script the tanks don't appear? Share this post Link to post Share on other sites
Trapper 0 Posted May 28, 2006 CreateVehicle is needed to create the empty tank, and createUnit to create the crew. Then you'll need moveInCommander/Gunner/Driver commands. Share this post Link to post Share on other sites
demonhunter212 0 Posted May 28, 2006 Thanks man Im stupid..........Oh well thanks Share this post Link to post Share on other sites
demonhunter212 0 Posted May 28, 2006 Okay its not working cause when i go to add CreateVehicle it says "Type Object, Expected Nothing" I don't understand this Share this post Link to post Share on other sites
Artak 0 Posted May 28, 2006 show us again what you have so far. createvehicle needs different parameters than createunit. Share this post Link to post Share on other sites
demonhunter212 0 Posted May 30, 2006 This is what i have but i keep getting that error message <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">"INQ_M1A2D" createVehicle [getpos Player, player, {TempReference = this}, 1, "CAPTAIN"] ~1 Share this post Link to post Share on other sites