• 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] Another local variable problem

Status
Not open for further replies.
Level 5
Joined
Sep 27, 2011
Messages
141
  • Actions
    • Custom script: local trackable tr = GetTriggeringTrackable()
    • Custom script: set udg_Integer = GetHandleId(tr)
    • Set Trackable_Number = (Load 2 of Integer from Track_Table)
    • Set Player = (Load 4 of Integer in Track_Table)
    • Set Group = (Load 9 of Integer from Track_Table)
    • Set Player_Number = (Player number of Player)
    • Set Temp_Loc[1] = (Center of Chosen_Region[Group])
    • Unit - Remove Chosen_Towers[Group] from the game
    • Unit - Create 1 Human_Tower_Unit[Trackable_Number] for Player at Temp_Loc[1] facing 270.00 degrees
    • Set Chosen_Number[Player_Number] = Group
    • Set Chosen_Towers[Chosen_Number[Player_Number]] = (Last created unit)
    • Unit - Turn collision for Chosen_Towers[Chosen_Number[Player_Number]] Off
    • Custom script: call UnitAddAbility(udg_Chosen_Towers[udg_Chosen_Number[udg_Player_Number]], 'Aloc')
    • Set Temp_Real = 0.00
    • Custom script: if GetLocalPlayer() == udg_Player then
    • Set Temp_Real = 100.00
    • Custom script: endif
    • Animation - Change Chosen_Towers[Chosen_Number[Player_Number]]'s vertex coloring to (100.00%, 100.00%, 100.00%) with Temp_Real% transparency
    • Custom script: set tr = null
    • Custom script: call RemoveLocation(udg_Temp_Loc[1])
the event is trackable click i know the trigger runs and that the unit is created i am pretty sure the problem is to do with the LocalPlayer which i always screw up. Thanks.
 
Status
Not open for further replies.
Top