Home   Help Search Login Register  

Author Topic: Appearing Markers!  (Read 590 times)

0 Members and 1 Guest are viewing this topic.

ShadowD BOB

  • Guest
Appearing Markers!
« on: 27 Jul 2003, 05:35:27 »
Is there a way to make markers show up on the map, only when a certain trigger has been activated.   e.g  i complete an objective then get a marker coming u showing a hidden objective?????

Any help would be appreciated.

Thx.

Offline .pablo.

  • Former Staff
  • ****
  • When in doubt, empty the magazine.
Re:Appearing Markers!
« Reply #1 on: 27 Jul 2003, 08:28:53 »
experiment with the setmarkerpos command:

"MarkerName" setMarkerPos [x, y]

the name of your marker has to be in quotes

what i'd try is putting a gamelogic where you want the marker to be, setting the marker's pos to something like [-999, -999] in the init.sqs, and then doing:

"Markername" setmarkerpos (getpos gamelogicname)

when you want the map to be updated

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:Appearing Markers!
« Reply #2 on: 27 Jul 2003, 10:59:21 »
Or failing that... you could place the marker (where you want it) and set it's type to 'empty'.

Then when you want it visible, simply use:

"marker" setmarkertype "TYPE"

The list of TYPE's is the same as in the drop down box in the editor... eg "Marker", "Dot", "Start", "Join" etc... ;)

ShadowD BOB

  • Guest
Re:Appearing Markers!
« Reply #3 on: 27 Jul 2003, 17:28:12 »
Cheers guys.

Offline axek

  • Members
  • *
  • I'm a llama!
Re:Appearing Markers!
« Reply #4 on: 28 Jul 2003, 02:07:35 »
I tried something similar to this, but had the marker initially set to invisible.

In a multiplayer mission, I had a trigger that, when it detected resistance, would set the marker type to "dot" (Can't remember the specific type).

However, it only appeared to work for the one player.  I thought that triggers were client side and that it would have changed that marker for each client - when that client had detected the resistance which would set the (repeating) trigger?  There wasn't any desync issues, so is there something that I was missing with trying to do that?

(Or should I just set it up server side?)

Cheers,
Axek.