Jump to content
Sign in to follow this  
SouthSaturnDelta

CreateCentre .....

Recommended Posts

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×