- Joined
- Mar 6, 2006
- Messages
- 282
I've googled this a lot and I'm still not positive I understand it.
To select a unit for a player, you need to use
That confuses me, because it means the other clients don't know that you selected a unit. But I tested, and they DO know.
1.) Does that mean I can safely use
2.) If all clients know that a certain player selected a unit in a local block, then what is
halp
edit: fck, I have 3 threads on the front page. w/e, im new to jass but learning quickly.
To select a unit for a player, you need to use
GetLocalPlayer
.That confuses me, because it means the other clients don't know that you selected a unit. But I tested, and they DO know.
1.) Does that mean I can safely use
SelectUnit
with GetLocalPlayer
, and IsUnitSelected
will always work (not cause desyncs)?2.) If all clients know that a certain player selected a unit in a local block, then what is
SyncSelections
for? I see that it's used in two BJ's that groups units. If SyncSelections
is needed at all, then it suggests that Selections aren't always in sync.. but they were when I tested...halp
edit: fck, I have 3 threads on the front page. w/e, im new to jass but learning quickly.