Home   Help Search Login Register  

Author Topic: Tracking player on the map  (Read 1105 times)

0 Members and 1 Guest are viewing this topic.

Offline Fargo

  • Members
  • *
Tracking player on the map
« on: 09 Dec 2008, 02:32:16 »
When making a mission, how do make it so I can see my position on the map? I've tried some searching but no luck

Offline Tyger

  • Former Staff
  • ****
  • I was at OFPEC when it still had dirt floors...
    • OFPEC
Re: Tracking player on the map
« Reply #1 on: 09 Dec 2008, 06:33:24 »
There are two ways. If you play the mission in Cadet Mode, then the position of the player should already be displayed on the map. If you have played the campaign or a SP Mission in Veteran mode, the MED will be in Veteran mode. To rectify the problem, play a mission in Cadet Mode, then re-enter the MED.

If you are not playing in cadet mode, you need to make a simple SQS script that sets the position of a marker on the map to that of the player. Something like the following:

Code: [Select]
_unit = _this select 0
_mkr = _this select 1

#check
? (! alive _unit) : exit
_mkr setMarkerPos (position _unit)
~0.5
goto "check"

Execute the script using
Code: [Select]
[myUnit, myMarker] exec "tracker.sqs"
where the script above was saved as tracker.sqs in your mission directory.

Hope this helps you out!
"People sleep soundly at night only because rough men stand ready to do violence on their behalf." - George Orwell

MSG Mike Everret - We Will Never Forget - '75-'08

Offline M!StAkE id11479

  • Members
  • *
Re: Tracking player on the map
« Reply #2 on: 09 Dec 2008, 18:32:40 »
mmh im not sure but i think that Fargo talk of another problem:

 Maybe he ask how see his own guy on the map when he make a mission in the editor...
 If its your real prob then its easy: when you start ofp for make your mission dont go immediatly in the editor but open a single mission first (long ago i played the one where you have to stole the car on Malden, quick to load!), then the gps is actived and if you go in editor you will see yourself in the map... If you go immediatly in editor the gps dont work, its an old ofp bug!

If you need then do as me:

- place a mm1 soldier in desert island and save the mission in solo missions, name it "gps initialization for editor", then you can load the mission very quickly and once it start just shoot the ground and exit... (mm1 soldier cause it require only one hand for > loading the mission/killing yourself/closing the game/exiting  :D )
« Last Edit: 09 Dec 2008, 18:39:11 by M!StAkE id11479 »