HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Motion detector trigger help

07-18-2004, 08:29 AM#1
kujospam
I need help making a motion detector spell, and I know it probably needs triggers to work. Here is basically what I want it to do. I want it to be an item that is perment, and once a marine(hero) uses it, it pings the locations of the guys around you up to a certain distance away. It pings like every 5 seconds, for 15 seconds, then the spell is down. Any Ideas how about how this might be done?
07-18-2004, 08:44 AM#2
Ceo
Well you could assume people arn't going to stand around waiting for the spell to stop before moving and just pick every unit within X range of motion detecter. I'm sure someone knows how to do it your way though.
07-18-2004, 03:36 PM#3
Milkman
I think something like this would work;

Untitled Trigger 001
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to DummyDetectSpell
Actions
Custom script: local unit udg_pingunits
set pinguints= Event response - Casting unit
Cinematic - Ping minimap for (Player group((Player((Player number of (Owner of pingunits)))))) at (Position of pingunits) for 1.00 seconds
Wait 2.00 seconds
Do the same thing again.

The use of the local unit is for mulitinstanceabilty.
07-18-2004, 05:42 PM#4
Ez8
I think he needs the ping to start when the hero starts moving, not when the hero casts a spell, so that trigger might not be what he wants.


I'm also trying to work out a motion detector trigger.

For example, I need to make one of my trigger spells a channeling one.

Sure, I can just base it off a channeling spell, but it'll be harder if I do that, so I need to find a way to detect my hero's movement via triggers.


Can anyone help?
07-18-2004, 09:11 PM#5
kujospam
I want it to work something like if any of you have played Night of the Dead the recon. I want the unit to be able to cast the spell and be moving while the spell lasts for say 15 or 10 seconds.
07-18-2004, 09:14 PM#6
kujospam
I guess the other question i have too, is what kind of item should I put this on, I tired putting it on a amulet of spell shielding , and then moding it, but I had no luck.
07-19-2004, 05:33 AM#7
BuRnInSpartan
easy trigger

Events: A unit comes within (X amount of range) of (w/e unit)

Conditions: (Item-type of (Item carried by (w/e unit) of type (w/e item)) Equal to (w/e item)

Actions: Cinematic - Ping minimap for (w/e players) at (Position of (w/e unit)) for (X amount of time)
Trigger- Turn off (this trigger)
Trigger- Turn on (this trigger)

hope this works
07-20-2004, 08:18 AM#8
kujospam
Thanks I got it to work another way, but Your idea I like too.