OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Ikhi on 09 Jun 2006, 20:26:00

Title: keeping in sync?
Post by: Ikhi on 09 Jun 2006, 20:26:00
The compulsory: Sorry for being a noob, and asking things that propably have already been asked a million times, but none the less could not be found with the search function.

I read the sticky on the top and it really was helpfull, but it also left me puzzled. How exactly should I communicate a games state among the clients? Say I camcreate or setradiomessage something on one client, and want it to appear on the others as well. What's the smartest way to do this? Handling it all through variables (communicated with publicVariable) that would then set off triggers seems a bit cumbersome (but would work?).
Title: Re: keeping in sync?
Post by: Terox on 10 Jun 2006, 17:47:38
if you want an object to be known on all clients and server and not just the client it was created on, use createvehicle, not camcreate


what specifically do you want to do??
Title: Re: keeping in sync?
Post by: Ikhi on 12 Jun 2006, 13:09:42
setradiomessage, objstatus, sidechat...

Also does a trigger fire on all clients once it has been triggered on one? Say a trigger that is trigger with a radio message, for example. Once one client sends the message is the same trigger triggered on all clients?