• 🏆 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!

[Solved] Target Point of Ability Beeing Cast returns the wrong location

Status
Not open for further replies.
Level 7
Joined
May 11, 2010
Messages
278
  • My Trigger
    • Events
      • Unit - A unit Finishes casting an ability
    • Conditions
      • (Ability being cast) Equal to My Ability
    • Actions
      • Set TempPoint = (Target point of ability being cast)
      • Cinematic - Ping minimap for (All players) at TempPoint for 1.00 seconds
I cast at one point, it pings halfway across the map, in the wrong direction.
The ability is based on Inferno. I use "finishes casting" because i want the trigger to execute when the infernal lands.
 
Level 7
Joined
May 11, 2010
Messages
278
i have no Jass experience, so i don't know how to do that... But if it's true that it returns null, then how would i go about creating a trigger that executes when the infernal lands?
"A unit starts the effects of an ability" would need a delay of 1,5 seconds... but it needs to be MUI :/
 
Level 23
Joined
Apr 16, 2012
Messages
4,041
how you print it is basically use the same event and put in Game - print message (Integer to string(X of point(Target point of ability being cast))) for player 1 - red ...
and the same for Y, if it is 0, 0 or if it didnt even print you are getting invalid values

you could still save the point to some hashtable or w/e and load it when the unit finishes casting using key(Triggering Unit)
 
Level 7
Joined
May 11, 2010
Messages
278
Fix'd it by storing point during "starts the effect". Thanks for the help :)
  • Explosion Cooldown
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Explode (ChiKan)
    • Actions
      • Set TempPoint3 = (Target point of ability being cast)
      • Hashtable - Save Handle OfTempPoint3 as (Key targetpoint) of (Key (Triggering unit)) in AbilityTable
  • Explosion Cooldown 2
    • Events
      • Unit - A unit Finishes casting an ability
    • Conditions
      • (Ability being cast) Equal to Explode (ChiKan)
    • Actions
      • Set TempPoint3 = (Load (Key targetpoint) of (Key (Triggering unit)) in AbilityTable)
      • Cinematic - Ping minimap for (All players) at TempPoint3 for 3.00 seconds
 
Level 17
Joined
Nov 13, 2006
Messages
1,814
Fix'd it by storing point during "starts the effect". Thanks for the help :)
  • Explosion Cooldown
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Explode (ChiKan)
    • Actions
      • Set TempPoint3 = (Target point of ability being cast)
      • Hashtable - Save Handle OfTempPoint3 as (Key targetpoint) of (Key (Triggering unit)) in AbilityTable
  • Explosion Cooldown 2
    • Events
      • Unit - A unit Finishes casting an ability
    • Conditions
      • (Ability being cast) Equal to Explode (ChiKan)
    • Actions
      • Set TempPoint3 = (Load (Key targetpoint) of (Key (Triggering unit)) in AbilityTable)
      • Cinematic - Ping minimap for (All players) at TempPoint3 for 3.00 seconds

yeah only with start effect and begin casting/channeling give back the casted spell id, rest can't give back because the ability already shout since unknow time
 
Status
Not open for further replies.
Top