• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

i need some help! PLZ! =)

Status
Not open for further replies.
Level 3
Joined
Dec 27, 2008
Messages
36
i have a question about trigger editor.
there is a "remove from the game" trigger there.
does it removes the unit and forgets about it FOREVER?
or is the unit still somewhere in the memory of the COMP?
PLZ help! i need it because i am going to use "remove from the game" often in my map. and if it is still somewhere in the memory it will laggg.
 
Level 3
Joined
Dec 27, 2008
Messages
36
ooops
i have 1 more thing to ask... )
how can i make neutral creeps respawn with GUI?
(yeap i am a simple GUI user and do not know JASS :csup: )
or if it is not possible maybe you have some ideas about making it the other way?
well ,
really i had an idea about making creeps appear when you enter the region
and remove them when you leave the region
(thats why i asked about removing).
but my problem is that ZONES are like squares and the terrain is not like square. (if you understand what i mean :con:)
 

Cokemonkey11

Code Reviewer
Level 29
Joined
May 9, 2006
Messages
3,522
the word you are looking for is rect.

to do what you are looking for you need to, in an initialization trigger add multiple rects to a region (estimate the shape of the area as closely as possible), and then make a trigger that says

event: unit enters rect

action: create x units for player neutral hostile in random point in random rect of region.

event unit leaves rect
action pick every unit in rects of region
remove picked unit.
 
Status
Not open for further replies.
Top