Jump to content
Sign in to follow this  
st!gar

Spawning/Removing entities

Recommended Posts

I was just wondering how you spawn or delete groups? Like for example, if a group has done what it was supposed to do, and you have no more need of it, and want to just as well remove it from the game completely? Or say you want a group of units to spawn into the game?

Share this post


Link to post
Share on other sites

Yes? Did I miss something vital? huh.gif

*EDIT* Read through it again. Found nothing.

Share this post


Link to post
Share on other sites

Just use createUnit or createVehicle and deleteVehicle from Scripting_Commands.

For BIS, the term 'vehicle' is roughly a synonym for 'object'.

Eg:<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_pilot = group _caller createUnit ["SoldierWPilot", [0,0,0], [], 0, "NONE"];

deleteVehicle _pilot;

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  

×