Jump to content
Sign in to follow this  
Entelin

Need help with this simple script im making.

Recommended Posts

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

Threads about mission editing/scripting belong in the mission editing and scripting forum, moving.

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  

×