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

set localPlayer = GetLocalPlayer()

Status
Not open for further replies.
Level 1
Joined
May 14, 2015
Messages
1
hi :) i found for your wapsite very lucky:)
i'dont know your language unfortunately :'( but i'm interested war3 World edit :(
There's a lot I do not know :( game cache multiple unit ,string integer real,veriables :(
but i'm working to learn :( can you help me :( if i know your language i did : (
 
Level 12
Joined
Mar 13, 2012
Messages
1,121
hi :) i found for your wapsite very lucky:)
i'dont know your language unfortunately :'( but i'm interested war3 World edit :(
There's a lot I do not know :( game cache multiple unit ,string integer real,veriables :(
but i'm working to learn :( can you help me :( if i know your language i did : (
Hi Arthas334. Do not post your question in this thread. If you have a question you can search or open a new thread in this subforum. Try to write in good understandable english. Welcome and have fun here :).
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,198
It is worth noting that using GetLocalPlayer with a global variable could possibly cause all kinds of problems when it comes to save games. The save will be different on each client and even if synchronized (forget how WC3 saves worked) it would end up synchronized afterwards across all clients.

Additionally it exposes a non-synchronized variable to the rest of the map script. Inexperienced mappers might accidently select it for a synchronized function and then wonder why their map OOSes when playing online.

These problems do not exist if you call it as needed.
 
Level 17
Joined
Apr 27, 2008
Messages
2,455
I don't think there is a problem with a global variable not synchronised, since you don't need GetLocalPlayer to have one, for example the camera fields, widget/abilities names, localized strings, etc.

And well, you can't always protect users from themselves, it's already for "advanced" users.
 
Status
Not open for further replies.
Top