• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[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