• 🏆 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!

Quick Question

Status
Not open for further replies.
Level 19
Joined
Aug 16, 2007
Messages
881
Hello. I've got a question about
JASS:
GetLocalPlayer()

Will this trigger create one unit for each player and only show the unit for the player and hide it for all other players?

  • Test123
    • Events
      • Time - Elapsed game time is 1.00 seconds
    • Conditions
    • Actions
      • For each (Integer i) from 1 to 12, do (Actions)
        • Loop - Actions
          • Set p = (Player(i))
          • Unit - Create 1 Footman for p at (Center of (Playable map area)) facing 90.00 degrees
          • Unit - Hide (Last created unit)
          • Custom script: if udg_p == GetLocalPlayer() then
          • Unit - Unhide (Last created unit)
          • Custom script: endif
If not, how should I do it?


EDIT: I missed this thread: Locally hiding units, let's continue the discussion there.
 
Status
Not open for further replies.
Top