Entelin 0 Posted January 24, 2008 The unit spawns the hints are all displayed, however the unit will not move to convoyendpos, and does not become equipped with the M9. This is my first script, the final idea is simply to have this unit enter a truck, and drive somewhere, respawn when it dies and repeat. I'm trying this basic thing first though. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">sleep(3); hint "Add unit"; _convoyGroup = createGroup Civilian; _convoydriver = "Civilian7" createUnit [getpos convoystartpos,_convoyGroup,"_convoyDriver = this", 1.0, "PRIVATE"]; processInitCommands; sleep(2); hint "move"; _convoyDriver doMove getpos convoyendpos; removeAllWeapons _convoydriver; _convoyDriver addWeapon "M9"; _convoyDriver addMagazine "15Rnd_9x19_M9"; _convoyDriver addMagazine "15Rnd_9x19_M9"; hint "end"; Share this post Link to post Share on other sites
Placebo 29 Posted January 25, 2008 Threads about mission editing/scripting belong in the mission editing and scripting forum, moving. Share this post Link to post Share on other sites