• 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.

did i do somethin wrong?

Status
Not open for further replies.
Level 5
Joined
Nov 25, 2004
Messages
65
  • example
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • Hashtable - Save Handle Of(Position of (Dying unit)) as (Key test position1) of (Key test position2) in myhash
      • Hashtable - Save Handle Of((Load (Key test position1) of (Key test position2) in myhash) offset by 150.00 towards 360.00 degrees) as (Key angle test1) of (Key angle test2) in myhash
      • Unit - Create 1 Terran Marine for Player 1 (Red) at (Load (Key angle test1) of (Key angle test2) in myhash) facing Default building facing degrees
      • Custom script: call SetUnitX ( GetLastCreatedUnit(), GetLocationX(LoadLocationHandle(udg_myhash, StringHash("angle test1"), StringHash("angle test2"))) )
      • Custom script: call SetUnitY ( GetLastCreatedUnit(), GetLocationY(LoadLocationHandle(udg_myhash, StringHash("angle test1"), StringHash("angle test2"))) )
      • -------- ====================================== --------
      • Custom script: call RemoveLocation(LoadLocationHandle(udg_myhash, StringHash("angle test1"), StringHash("angle test2")))
      • Custom script: call RemoveLocation(LoadLocationHandle(udg_myhash, StringHash("test position1"), StringHash("test position2")))
for some reason, the trigger always created the unit on the center of the map, which is something i dont want. but when i disable the custom script, the unit always created at the correct location. can tell me whats going on here.
 
Status
Not open for further replies.
Top