• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

Only castable while inside region?

Status
Not open for further replies.
Level 1
Joined
Aug 27, 2005
Messages
4
im doing an spell which is supposed to only be able to cast while inside a special region... but i cant find anything thats like "triggring unit is in region" only Triggering unit enters region" or "triggering unit leaves region". how can i get this to work, plz i need help. :?
 
Level 6
Joined
Aug 12, 2005
Messages
205
Event:
:arrow: A unit starts the effect of an ability
Conditions:
:arrow: Ability being cast equal to "X"
:arrow: Terrain type at position of casting unit equal to (The terrain type you want the spell working)!
Actions:
:arrow: Here you put the actions that will happen in the spell!

Hope that helped! 8)
 
Level 4
Joined
Sep 22, 2005
Messages
79
i think i can do this... here try this one out...

first trigger:
events: unit - a unit enters (current camera bounds)
conditions:
actions: unit - add ability to (triggering unit)


second trigger:
events: unit - a unit exits (current camera bounds)
conditions:
actions: unit - remove ability from (triggering unit)




im getting good at this... just make sure that when you add these triggers that the camera is where u want it... and it is actually when unit enters/exits rect and u change rect to camera bounds
 
Status
Not open for further replies.
Top