spawn conditions

educator

New Member
Reaction score
9
ok im making a map and enemies are only supposed to spawn if there are less than 7 (in 1 region, there is more than 1 failing spawn trigger) but they keep on spawning
Trigger:
  • events
    • every 5 seconds
    • conditions
    • number of units in( units in spawn1 <gen>( matching( matching unit is owned by player 12 brown))) less than 7
    • actions
    • unit - create 1 monster for 12 at random point in spawn 1


thnx "madd_999" i got it working (and i didnt have access to the editor or i would of pasted my trigs (that was my first time trying to freehand in GUI tags)
 

tommerbob

Minecraft. :D
Reaction score
110
Copy/Paste your trigger from your map so we can see exactly what you are doing. It helps. (right-click on trigger heading, select "copy as text")
 

madd_999

New Member
Reaction score
14
try using:

Trigger:
  • (Number of units in (Units in ( spawn1 <gen>) owned by Player 12 (Brown))) Less than 7


its an integer comparison.

think is solves your problem,
if you want to keep the same trigger try using

... matching( picked unit is owned by...
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top