• 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.
  • 💡 We're thrilled to announce that our upcoming texturing contest is in the works, and we're eager to hear your suggestions! Please take this opportunity to share your ideas in this theme discussion thread for the Texturing Contest #34!
  • 🏆 Hive's 7th HD Modeling Contest: Icecrown Creature is now open! The frozen wastes of Icecrown are home to some of Azeroth’s most terrifying and resilient creatures. For this contest, your challenge is to design and model a HD 3D monster that embodies the cold, undead, and sinister essence of Icecrown! 📅 Submissions close on April 13, 2025. Don't miss this opportunity to let your creativity shine! Enter now and show us your frozen masterpiece! 🔗 Click here to enter!

[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