- Joined
- Mar 27, 2019
- Messages
- 56
Hey,
I'm trying to use BlzGetMouseFocusUnit() for proper Unit Detection for Mouse Hover, it has to be Multiplayer compatible, I read that it causes desyncs because it stores the value locally and doesn't sync to others. Anyways is there a simple way to sync the udg_Temp_Unit or whatever must be synced?
I never used SyncMethods and need a explaination for these, they seem a bit complicated.
I'm trying to use BlzGetMouseFocusUnit() for proper Unit Detection for Mouse Hover, it has to be Multiplayer compatible, I read that it causes desyncs because it stores the value locally and doesn't sync to others. Anyways is there a simple way to sync the udg_Temp_Unit or whatever must be synced?
I never used SyncMethods and need a explaination for these, they seem a bit complicated.
-
Local
-
Events
-
Player - Player 1 (Red) types a chat message containing - as An exact match
-
-
Conditions
-
Actions
-
Custom script: set udg_Temp_Unit = BlzGetMouseFocusUnit()
-
Game - Display to (All players) for 1.00 seconds the text: (Name of Temp_Unit)
-
-