HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

TriggerRegisterUnitInRange....

06-08-2006, 12:52 PM#1
Sharingan
Is there actually a way to register sold units using that function?
Like, it would only work with preset units, no matter what I do ...
I tried using game cache, using global variables.....no use...
Sighs...
06-08-2006, 01:00 PM#2
blu_da_noob
You can register the event mid-game, whether creating a new trigger and adding the event or adding the event to a premade trigger. What part are you having a problem with?
06-08-2006, 01:01 PM#3
iNfraNe
There is an action to add a new event.
Trigger:
Trigger - Add new event

That does take variables, not only preset units.
06-08-2006, 01:50 PM#4
Chuckle_Brother
Just something to keep in mind with this, there will be a delay. I did some tests and most times it took the game 0.135 seconds to register a unit nearby, so yeah....just tossing it out there that it won't be instantaneous.
06-08-2006, 02:22 PM#5
Sharingan
Quote:
Originally Posted by blu_da_noob
You can register the event mid-game, whether creating a new trigger and adding the event or adding the event to a premade trigger. What part are you having a problem with?
I tried to "enable" the trigger 20 secs after the game initialization, wouldn't it mean the same?
06-08-2006, 02:25 PM#6
iNfraNe
no it wouldnt. Read my post please.
06-08-2006, 03:07 PM#7
Sharingan
Oh dear, now i finally got the concept of triggers(events, actions...)
thx to you all!