• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Condition or event (number of unit into a region)

Status
Not open for further replies.
Level 10
Joined
Feb 20, 2008
Messages
448
ok actually i wanted to create creep when there less than 10 unit on a selected area

event
(if there less than 15 unit in region20)


condition
(if there less than 15 unit in region20)

action
create unit

some1 could help me to tell me where to search ? to make it work
 
Level 28
Joined
Mar 25, 2008
Messages
2,955
  • Events
    • Time - Every 1.00 seconds of the game
  • Conditions
  • Actions
    • Set temppointX = Center of Region20 <gen>
    • If (Units in(Units in Region20 <gen>)) less than 15 then Unit - Create 1 *creep* at temppointX facing default building degrees degrees
    • Custom script: call RemoveLocation(udg_temppointX)
 
Status
Not open for further replies.
Top