Home   Help Search Login Register  

Author Topic: On Map SingleClick to move marker  (Read 1339 times)

0 Members and 1 Guest are viewing this topic.

Offline laggy

  • Members
  • *
  • "Behold a pale horse"
On Map SingleClick to move marker
« 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 ???
And I looked and beheld a pale horse and his name that sat on him was Death and Hell followed with him.

Offline nominesine

  • Former Staff
  • ****
  • I'm NOT back!
    • The IKB Forum
Re:On Map SingleClick to move marker
« Reply #1 on: 02 Mar 2005, 21:03:18 »
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.
OFPEC | Intel Depot
RETARDED Ooops... Retired!

Offline nominesine

  • Former Staff
  • ****
  • I'm NOT back!
    • The IKB Forum
Re:On Map SingleClick to move marker
« Reply #2 on: 03 Mar 2005, 21:11:49 »
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).

OFPEC | Intel Depot
RETARDED Ooops... Retired!