HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Varables in events...

12-16-2003, 09:06 PM#1
Hunter0000
I have found a little problem, is there a way around how it doesnt let you set a varable for this kind of event:
Quote:
Unit - A unit comes within 40.00 of Snake Head 0001 <gen>


I want it to read:

Unit - A unit comes within 40.00 of Head(<--this is a unit varable)

How can I do this without the unit allready being preplaced?
12-16-2003, 09:53 PM#2
Reldan
I'm assuming that since you don't want to do this with preplaced units that the units you will be using variables to hold will be entering the game at a point after the start.

Simplest way to go about doing this then is to have a trigger with the generic unit event:

Event - Unit enters playable map region

Then use the action:

Add new event - Specific unit event, unit comes within 40.00 of <triggering unit>

If this isn't exactly what you are looking for at least it may put you on the right path. It is the only way I know of to use specific unit events with non-pregenerated units.
12-16-2003, 10:03 PM#3
Hunter0000
You are my savoir! Thank you so much!:D :foot:
01-03-2004, 10:26 PM#4
Squashy
Are you making a warcraft III version of the snake game? That one always addicted me.