Home   Help Search Login Register  

Author Topic: Markers in MP  (Read 570 times)

0 Members and 1 Guest are viewing this topic.

Offline Gadjuka

  • Members
  • *
  • Programmer
    • Operation Flashpoint: Commander
Markers in MP
« on: 29 Mar 2003, 13:52:32 »
I need a marker or something like it to mark the place for every unit on the players side on the map. Since it's a MP mission, west shouldn't see easts units and vice versa.
Is it a way to do it? Markers seems to be global - everyone can see them...
Currently working on Operation Flashpoint: Commander.
Website: http://www.nordserver.se/commander/

bn880

  • Guest
Re:Markers in MP
« Reply #1 on: 01 Apr 2003, 17:37:41 »
This should give you more than a hint:
init.sqs
Code: [Select]
?(side player == east): Goto "east"
?(side player == west): Goto "west"
goto "exit"

#west
"Scud" SetMarkerType "Destroy"
"Arti1" SetMarkerType "Destroy"
"Arti2" SetMarkerType "Destroy"
"BHmarker" SetMarkerType "Dot"
"north" SetMarkerType "Arrow"
"shore" SetMarkerType "Join"
"lstMarker" SetMarkerType "Dot"
"e_1" SetMarkerType "Warning"
"e_2" SetMarkerType "Warning"
"e_3" SetMarkerType "Warning"
"e_4" SetMarkerType "Warning"
"e_7" SetMarkerType "Warning"
"convoy" SetMarkerType "Unknown"
"Base" SetMarkerType "Flag1"
"ammo1" SetMarkerType "empty"
"ammo2" SetMarkerType "empty"
"ammo3" SetMarkerType "empty"
"ammo4" SetMarkerType "empty"
"mine1" SetMarkerType "empty"
"mine2" SetMarkerType "empty"
"mine3" SetMarkerType "empty"
"air" SetMarkerType "empty"
1 SetRadioMsg "Call Blackhawk"
2 SetRadioMsg "Send Blackhawk Home"
3 SetRadioMsg "Report Status"
4 SetRadioMsg "BlackHawk get lower!"
5 SetRadioMsg "MAX ViewDistance"
6 SetRadioMsg "Normal ViewDistance"
7 SetRadioMsg "ViewDistance + 100m"
8 SetRadioMsg "ViewDistance - 100m"
goto "end"

#east
"Scud" SetMarkerType "Flag1"
"Scud" SetMarkerColor "ColorGreen"
"Arti1" SetMarkerType "Flag1"
"Arti1" SetMarkerColor "ColorGreen"
"Arti2" SetMarkerType "Flag1"
"Arti2" SetMarkerColor "ColorGreen"
"BHmarker" SetMarkerType "empty"
"north" SetMarkerType "empty"
"shore" SetMarkerType "empty"
"lstMarker" SetMarkerType "empty"
"e_1" SetMarkerType "empty"
"e_2" SetMarkerType "empty"
"e_3" SetMarkerType "empty"
"e_4" SetMarkerType "empty"
"e_7" SetMarkerType "empty"
"convoy" SetMarkerType "empty"
"Base" SetMarkerType "empty"
"ammo1" SetMarkerType "Marker"
"ammo2" SetMarkerType "Marker"
"ammo3" SetMarkerType "Marker"
"ammo4" SetMarkerType "Marker"
1 SetRadioMsg "null"
2 SetRadioMsg "null"
3 SetRadioMsg "null"
4 SetRadioMsg "null"
5 SetRadioMsg "MAX ViewDistance"
6 SetRadioMsg "Normal ViewDistance"
7 SetRadioMsg "ViewDistance + 100m"
8 SetRadioMsg "ViewDistance - 100m"
goto "end"
#end

exit

 :)

Offline Gadjuka

  • Members
  • *
  • Programmer
    • Operation Flashpoint: Commander
Re:Markers in MP
« Reply #2 on: 07 Apr 2003, 10:33:01 »
Thanks, it works fine!

After all markers weren't global...
Currently working on Operation Flashpoint: Commander.
Website: http://www.nordserver.se/commander/