SouthSaturnDelta 1 Posted August 7, 2007 Hi folks, Â Â I hear it may be possible to spawn units using the CreateCentre command ? Heres what I tried ,but it dosnt seem to work yet. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_relative = getpos player WHQ = createCenter west groupWHQ = group (WHQ) "SoldierWPilot" createunit [ _relative ,groupWHQ ,"pilot1=This",1.0, "Major"] In the BIS commands list,it says that CreateCentre can be used for the above purpose,though does anyone know how ? Cheers, SSD Share this post Link to post Share on other sites
UNN 0 Posted August 7, 2007 You need to call CreateGroup once you've created your Center. Also after that, if you are creating groups that belong to a side, that wasn't present in the mission editor. You have to setup who that side is hostile and friendly to. I posted some code here, that covers everything you need to do: CREATECENTER Share this post Link to post Share on other sites
SouthSaturnDelta 1 Posted August 8, 2007 Thanks UNN - just the job. Definately a usefull new command for Arma. SSD Share this post Link to post Share on other sites