• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[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.
 
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 :/
 
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)
 
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
 
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.
Back
Top