HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Triggering Unit???

06-22-2004, 01:44 AM#1
GosuSheep
Unit - A unit comes within 86.00 of Black Sheep 0022 <gen>


how can i use the Black Sheep 0022 <gen> as a unit

example
Kill TriggeringUnit

or

Kill MatchingUnit

how can i do this?
06-22-2004, 01:47 AM#2
Arohk
Quote:
Originally Posted by GosuSheep
Unit - A unit comes within 86.00 of Black Sheep 0022 <gen>


how can i use the Black Sheep 0022 <gen> as a unit

example
Kill TriggeringUnit

or

Kill MatchingUnit

how can i do this?

i dont really understand what you want to do but if you want kill the unit that come in range of black sheep use "kill triggering unit"
06-22-2004, 01:49 AM#3
sweet5
he wants to kill the sheep I think...so just say kill Black Sheep 0022 <gen>
06-22-2004, 03:44 PM#4
th15
He's trying to use a Specific Unit Event with a variable unit. There is a workaround to do this.

Whenever a black sheep is created, add the following action below it

Trigger- Add event: A unit comes within 86 of <last created unit>
06-22-2004, 03:52 PM#5
Vexorian
No he wants to get the unit that was in the event.

And no, there is no way to tell, I even found myself in problems with this, I ended using handle variables functions in JASS
06-22-2004, 03:57 PM#6
johnfn
Why doesnt he tell us what he means? Look, each of you say "No, he means [...]".

If he means what I think he means (hehehe), then you should simulate the "in range" trigger to see what unit it is by looping through all the units in a rectangle centered on the unit to see what unit just entered.
06-22-2004, 04:01 PM#7
th15
Oh, I see. Well, theoretically you can search for all black sheep that are between 85.00 and 86.00 distance of triggering unit, but that's only about 80% accurate (depending on how many sheep you have walking around).

Frankly, if you want to do this, just give the damn units perma-immolation that only affects sheep.
06-22-2004, 04:05 PM#8
GosuSheep
thank you... actually, vexorian was mostly right... i did find a way to check for close units next to a unit but that was ... complicated

so i just made a bunch of triggers... 1for each black sheep