Jump to content

Random Spawn location of player controlled units


BlackDeath

Recommended Posts

Hello,

 

I am trying to randomize spawn location of player units within a zone but can't figure out how to do so.

What I'd like to do is : 

 

Mission started with 1/A spawned randomly in custom Zone 1, when 1/A is destroyed, 2/A is spawned randomly in the same zone. When 2/A is destroyed, 3/A is spawned randomly and so forth.

For now, everything works except the random spawn location. Units do spawn but only where I put them in the editor.

 

Am I missing something? Is the spawning ability only used for traffic?

 

image.png.73ca07d54398d8d1c5b03abfdaeec7e9.png

 

Thank you very much

Regards

Edited by BlackDeath
Link to comment
Share on other sites

  • Members

Spawn zones are used for entirely different purposes.

 

You want to use a "Spawn, if..." condition (a unit propety), possibly combined with a "jump to end, if..." condition for routes leading to your desired random starting locations. IF both your Spawn and Jump condition are exclusively based on a random variable, they will be evaluated before the Planning Phase, so the player will already see the units in their starting locations. This is desirable especially for multiplayer sessions (because you can pick only units that have already been spawned).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...