OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: laggy on 02 Mar 2005, 20:24:52
-
Hi !
I have a trigger in a MP mission with condition (player hasweapon "BAS_satcom") and on activation it has the OnMapSingleclick command to move a marker on the map.
The marker moves but only on the computer of the client who meets the condition.
A very simple action script (to test my idea) activates a trigger that starts a script that makes a chopper move to the marker (on the new location) even though the server doesn't see the marker at the new location (the setmarkerpos seems to be is executed only on the above described client, but still the choppers move to the right place).
1:st What is the real position of the marker (in this case) ? and 2:nd How do I move a marker with OnMapSingleClick and get it executed on all computers ?
Thanks
Laggy ???
-
1) My guess is that the markers real position must be the location the helicopter is heading for. ThatÂ's why it moves in the first place ::)
2) Don't know.
Is this the same test mission we tried over LAN last time? I can dePbo it and have a look this weekend.
-
Condition player hasweapon "BAS_satcom"... it has the OnMapSingleclick command to move a marker on the map.
This is the key to your problem. Since the condition includes "player" it can only be true at one computer at a time (since player is different on all machines in MP mode).