| 01-27-2006, 12:26 PM | #1 |
I have heard that some actions, being used within an if like this: if (GetLocalPlayer()==someplayer) then ACTIONS endif will cause game crashes, so my question is..what sorts of actions would cause this to happen? and am I safe to use sound/unit animations being done like this? |
| 01-27-2006, 12:29 PM | #2 |
the most major cause of desyncs with get local player would be things that modify pathing (eg: a new unit, a new destructable) im pretty shure your safe with almost any actions invlolving sounds. i dont know about unit animations tho. (should be desync-free... but then again.) |
| 01-27-2006, 12:31 PM | #3 |
Creating new handleobjects will cause desyncs. Pathing change too, like said. Actually.. anything that will cause the game to act differently then it would normally will cause a desync (and NOT a game crash, thats something totally different). Things you can usually do are things like changing vertex color, changing models for special effects. Showing/Hiding multiboards etc. |
| 01-27-2006, 12:36 PM | #4 |
Alright, but I said game crashes cause I tested with creating a unit(figured it would *uc* up for sure) and when I tried it gives that "You have been disconnected" message, then my game exited(right back to my desktop). Anyway, would changing a unit's owner cause a desync to occur? |
| 01-27-2006, 12:42 PM | #5 | |
Quote:
most probobly. its like getting in an argument: "this is MYNE!" one computer says, yet all the others say "no, its his." so they beat him up. (disconnect him) |
| 01-27-2006, 12:47 PM | #6 |
Alrighty...thanks guys. |
