HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Event: Unit comes withing range?

12-08-2004, 01:36 AM#1
UndercoverIdiot
I have an event that says:
Code:
   [color=Yellow]Events:[/color]
        [color=Orange]Unit within range - [/color] [color=Blue]A unit comes within 100.00 of operative 0001<gen>[/color]
   [color=Yellow]Conditions:[/color]
        [color=Orange]Unit-Type Comparison - [/color] [color=Blue]Unit-Type of (triggering unit) Equal to Rocket[/color]
   [color=Yellow]Actions:[/color]
        [color=Orange]Kill - [/color][color=Blue]Kill (triggering unit)[/color]
This does not work for some reason. could anyone explain why and help me to fix it?
-Thanks
12-08-2004, 02:33 AM#2
czarspuppet
Quote:
Originally Posted by SiR-BuMaLoT
I have an event that says:
Code:
   [color=Yellow]Events:[/color]
        [color=Orange]Unit within range - [/color] [color=Blue]A unit comes within 100.00 of operative 0001<gen>[/color]
   [color=Yellow]Conditions:[/color]
        [color=Orange]Unit-Type Comparison - [/color] [color=Blue]Unit-Type of (triggering unit) Equal to Rocket[/color]
   [color=Yellow]Actions:[/color]
        [color=Orange]Kill - [/color][color=Blue]Kill (triggering unit)[/color]
This does not work for some reason. could anyone explain why and help me to fix it?
-Thanks
100 is awful close for testing, especially if 'rocket' has AOE damage on death. Also, kill uses the standard death animation so you might have difficulty knowing how it died, I'ld suggest modifying the action to 'remove from game' or 'hide' or 'explode unit' for testing purposes.
12-08-2004, 10:38 AM#3
AFB-DieHard
Maybe the problem lies in using Triggering Unit, try using another event response, for example entering unit. But I might be wrong.
12-08-2004, 11:43 AM#4
UndercoverIdiot
Quote:
Originally Posted by czarspuppet
100 is awful close for testing, especially if 'rocket' has AOE damage on death. Also, kill uses the standard death animation so you might have difficulty knowing how it died, I'ld suggest modifying the action to 'remove from game' or 'hide' or 'explode unit' for testing purposes.
The unit cant die in any other way and 100 is 2 to 3x the size of a unit while the missle passes through his legs. (By the way the missle is a locust, Invulnerable anyway...) Oh... Invulneruble heh... Well I tried that to and it doesnt work still...


Quote:
Originally Posted by ABF-DieHard
Maybe the problem lies in using Triggering Unit, try using another event response, for example entering unit. But I might be wrong...
Ya, it says on the event to use triggering unit. But Thanks for trying to help.
12-08-2004, 02:53 PM#5
czarspuppet
Quote:
Originally Posted by AFB-DieHard
Maybe the problem lies in using Triggering Unit, try using another event response, for example entering unit. But I might be wrong.
Ahh yes, there might be an event responce specifically for radius too..
12-08-2004, 10:16 PM#6
Vexorian
The only event response that event has is Triggering Unit , and it determines the unit that came close to the unit in the event.
01-05-2005, 03:33 AM#7
UndercoverIdiot
Quote:
Originally Posted by Lord Vexorian
The only event response that event has is Triggering Unit , and it determines the unit that came close to the unit in the event.

I've tried this before and it hasn't worked...

-Thanks
01-05-2005, 11:50 PM#8
Voi
I have also tried it before and I am VERY sure triggering unit works. Nothing is wrong with your trigger. Try it a little more and you will see it works. Trust me!
01-05-2005, 11:55 PM#9
iNfraNe
does your rocket have the ability locust? cuz it doesnt react to comes in range if it has locust ;)
01-06-2005, 01:27 AM#10
Moose-Head_Man
i havn't tested it, but if it worked for maze maps where you want to avoid monsters, then people SHOULD be smart enough to use it, becuase every maze game i play, everyoen says OH SHIAT I ACCIDENTLY CLICKED THE (insert baddie assie monster here) AND I FOLLOWED HIM OFF THE PATH


with locust you can't click them, i was thinking of making a maze game with enemy monsters that have locust, but i was hopeing that it will still detect range, but apparently it doesn't\


01-06-2005, 11:02 AM#11
Voi
The unit in the event can have locust but not the unit coming in range. I'm sorry I didn't think about that before :(
01-11-2005, 12:59 AM#12
UndercoverIdiot
Quote:
Originally Posted by toot
does your rocket have the ability locust? cuz it doesnt react to comes in range if it has locust ;)
That is my problem. Well thanks for your help. Just to bad it didn't work ):.
01-11-2005, 04:57 AM#13
yuripro84
wait, is the man that comes within the rocket invulnerable??maybe that messes up the code??cause if he cant die, well, he cant die(duh), so try removing him instead when he gets close
01-11-2005, 12:59 PM#14
ABM
Quote:
Originally Posted by yuripro84
wait, is the man that comes within the rocket invulnerable??maybe that messes up the code??cause if he cant die, well, he cant die(duh), so try removing him instead when he gets close

invulnerable unit can be killed too "yuripro"

and true that a locust ability unit cannot be selected in any way even by trigger so if u dont change it ur trigger will never work.
many trigger can be bugged because of that ability (ex: a locust ability unit don't get the aura bonus and can't be killed by trigger)
01-11-2005, 01:37 PM#15
iNfraNe
There are actually alot of things you CAN do with locust units:

you can make them vulnerable by doing the action:
Code:
Unit - Make (unit) Vulnerable

you can make them have pathing by doing the action:
Code:
Unit - Turn collision for (unit) On

you cannot pick them by every unit in region, but:
Code:
Unit Group - Pick every unit in (Units owned by Player) and do (Actions)
and
Code:
Unit Group - Pick every unit in (Units of type unit) and do (Actions)
both work perfectly fine.

a way to fix this problem, if the other unit DOESNT have locust, try reversing the trigger, tho this will require some weird trigger cause there is no event response to the unit who is the object of coming in range.. which pretty much sux.