• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

(GU) Getting location of where spell was cast

Status
Not open for further replies.
Level 7
Joined
Dec 9, 2014
Messages
89
How do I get the location of where on the ground a spell was cast? I want to check if the location is within a region, then perform an action if so. Can I do this in GUI? Failing that in JASS?
 
Last edited:
Level 5
Joined
Jun 13, 2017
Messages
83
if the ability target a point not a unit here is how you do it:
  • Events
    • Unit - A unit Starts the effect of an ability
  • Conditions
    • (Ability being cast) Equal to YourAbility
  • Actions
    • make a variable for the point
    • Set Ability_Point = Target Point of Ability Being cast
    • then do if/then/else
    • if
      • YourRegion contain Ability_Point equal to yes
      • then
      • do your action
      • else
        • order unit to stop if you don't want the ability to go on Cooldown
To get the condition for Point in region it is in Boolean in the middle it says (Region Contain Point)
 
Status
Not open for further replies.
Top