• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

GetLocalPlayer() vs Unit Size and Reforged users detection.

Status
Not open for further replies.
Level 7
Joined
Jun 1, 2009
Messages
104
Due to some models scaling mismatch in classic and reforged modes, I use a trigger that should fix units scale.
But there are 2 questions.
1. Will it cause a desync for multiplayer? (Some posts said that it won't, but they were made long time before buggy reforged was released)
2. Is there any option to detect classic\reforged graphics of a user via triggers?

  • For each (Integer B) from 1 to Max_Player_Number, do (Actions)
    • Loop - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • PlayerReforged[(Integer B)] Equal to No
        • Then - Actions
          • Set VariableSet PlayerLocal = (Player((Integer B)))
          • Custom script: if GetLocalPlayer() == udg_PlayerLocal then
          • Animation - Change BOSS_Unit[(Integer A)]'s size to (300.00%, 300.00%, 300.00%) of its original size
          • Custom script: endif
        • Else - Actions
 
Status
Not open for further replies.
Top