Home   Help Search Login Register  

Author Topic: Markers that follow players on Map  (Read 521 times)

0 Members and 1 Guest are viewing this topic.

solo1zone

  • Guest
Markers that follow players on Map
« on: 26 Apr 2003, 08:55:11 »
I have been toiling with a script that I can't seem to get working? I am doing a mulitplayer game and I want the team to only see a marker moving around the map to specify the group players locations.

in my player init: i have [this,EComMarker] exec "UpdatePlayerMarker.sqs"

** EComMarker is the name of the Marker on the map a "Dot"

UpdatePlayerMarker.sqs

_player = _this select 0
_playermarker = _this select 1
~0.5
#Repeat
_playermarker setPos [getpos _player select 0, getpos _player select 1]
~3
goto "Repeat"

Any help would be greatly appreciated.......

Offline toadlife

  • OFPEC Old Skool
  • Former Staff
  • ****
  • Official OFP Editing Center Toad
    • toadlife.net
Re:Markers that follow players on Map
« Reply #1 on: 26 Apr 2003, 10:12:08 »
use "setmarkerpos" instead of "setpos" ;)

Also make sure you enclose the marker names in quotes when initializing the script.

[player,"markername"] exec "markermove.sqs"

Code: [Select]
_player = _this select 0
_playermarker = _this select 1
~0.5
#Repeat
_playermarker setmarkerPos getpos _player
~3
goto "Repeat"
"Whenever you want information on the 'net, don't ask a question; just post a wrong answer." -- Cancer Omega.

solo1zone

  • Guest
Re:Markers that follow players on Map
« Reply #2 on: 26 Apr 2003, 19:53:06 »
Toadlife....thanks a million....your input works like a charm...... I just added hidemarkes from side script, to the init.sqs and this is looking great...thanks again... ;D


SAMPLE MARKER FOLLOWERS
in my player init: i have [this,"EComMarker"] exec "UpdatePlayerMarker.sqs"

** "EComMarker" is the name of the Marker on the map a "Dot"

UpdatePlayerMarker.sqs

_player = _this select 0
_playermarker = _this select 1
~0.5
#Repeat
_playermarker setmarkerpos [getpos _player select 0, getpos _player select 1]
~3
goto "Repeat"
« Last Edit: 26 Apr 2003, 19:53:54 by solo1zone »