Jump to content
Sign in to follow this  
demonhunter212

Need Help

Recommended Posts

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? help.gif

Share this post


Link to post
Share on other sites

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

Okay its not working cause when i go to add CreateVehicle it says "Type Object, Expected Nothing" I don't understand this confused_o.gif

Share this post


Link to post
Share on other sites

show us again what you have so far. createvehicle needs different parameters than createunit.

Share this post


Link to post
Share on other sites

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×