Hi
I was reading snYpir's MP tute and I noticed that he suggests calling "publicVariable" whenever a variable is changed somewhere. In the OCR however it sounds like you only have to call it once, and then the OFP engine will automatically broadcast the variable to all computers during the session. I've seen ppl do it both ways in their missions, and both seem to work, so I'm a bit confused now
Can someone plz enlighten me as to
wether or not there's any difference?
Oh, and another q:
?(local SERVER): bla (serverstuff)
works nicely when there's actually a SERVER unit on the map. It'd be cooler tho to have the script create the logic itself:
_server= "logic" camcreate [0,0,0]
?(local _server): bla (serverstuff)
Does this work? I want to make 3 sqf functions which you can use to easily detect if you're on a server, client or dedicated server; I will post them here if the above trick works.