Create units in region NOT working

MissKerrigan

Active Member
Reaction score
23
Hello,

- I got 7 islands which are about 8x8 size
- I created a big region over all the 7 islands called 'unit spawn'

Here is my question:

If I create a ground unit by trigger in a RANDOM point of the region, will it automatically be placed at 1 of the islands?
Sometimes my trigger isn't working and no unit will be spawned, is it in the water perhaps??

MissKerrigan
 

Dave312

Censored for your safe viewing
Reaction score
269
No. If the unit is a ground unit, and the selected position is over water, then the unit won't be created.

I can think of two options that will solve this:
1) Modify your region such that it is made up of multiple regions that are only over land.
2) Create a loop in your trigger that checks if the unit created was actually created. If it is not created then it should try creating the unit again at another random point in your region. You can use a While action to do this.
 

Phubar

Ultra Cool Member
Reaction score
30
I think that Dave's solution 1 in better, you could wait a lot if the spawning point is "always" ranomized on water.
 

MissKerrigan

Active Member
Reaction score
23
already got it!!

I notice now I don't need to modify the regions over the water
If it's a ground unit I'm spawning by trigger, then it finds automatically a ground location

The problem was that all players having a start-building
When the bonus appears arround a start-building, it disappears!!

(the computer thinks some player picked up the bonus)


so I gave the start-buildings 'structure attribute' and disable structure in the bonus options
 
General chit-chat
Help Users

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top