OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Mr.Peanut on 22 Mar 2005, 20:13:39

Title: SetWPPos and SetDamage in MP
Post by: Mr.Peanut on 22 Mar 2005, 20:13:39
If using SetWPPos in multiplayer does the command need to be executed on all clients or just the server?

Does the SetDamage command automatically sync between clients?  For example, if I SetDamage = 1 on the server to a static Map object, such as a bridge, will the bridge be destroyed on all clients?
Title: Re:SetWPPos and SetDamage in MP
Post by: nominesine on 22 Mar 2005, 20:27:54
1) Think it needs to be set on all clients, but I'm not sure.

2) Set damage will have the same effect on all computers. It's completely MP safe.
Title: Re:SetWPPos and SetDamage in MP
Post by: StonedSoldier on 22 Mar 2005, 21:26:06
given my experience of setpos i would presume its ok just running it on one machine and it should broadcast on its own
Title: Re:SetWPPos and SetDamage in MP
Post by: Terox on 22 Mar 2005, 22:19:31
static objects are local to all, so if you use a specific client side script or server script to damage one, all should see the results

as for the waypoint question, this is local to the group

if the group leader is a player then the group is local to the player

not sure what happens if the group leader is AI and a player is in the group,
in this case the waypoint is definiotely local to the player but not sure if it is local to the server too
Title: Re:SetWPPos and SetDamage in MP
Post by: StonedSoldier on 22 Mar 2005, 23:17:19
locality is a strange thing, i would assume waypoints would been the same as triggers