Home   Help Search Login Register  

Author Topic: displaying player in map  (Read 456 times)

0 Members and 1 Guest are viewing this topic.

prostetnic

  • Guest
displaying player in map
« on: 24 Feb 2003, 14:58:35 »
i have not made a map for ofp since  version 1.2...so bare with me.

how do i get the players position constantly in the map? i remember something to do in init.sqs or something..but i can't remember what.

Relbik

  • Guest
Re:displaying player in map
« Reply #1 on: 24 Feb 2003, 17:24:14 »
Use a script and a marker.

markername setmarkerpos(getpos unitname)

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:displaying player in map
« Reply #2 on: 24 Feb 2003, 19:00:31 »
you'd need to loop that naturally, so the whole thing would go

1. write in your init.sqs   [] exec "marker.sqs"

2. in editor create a dude named dude and a marker called marker1

3. make a   marker.sqs   named script file in your mission folder and open it with notepad or whatever you're using.

4. write this little piece of script in the file

#loop
"marker1" setmarkerpos getpos dude
~0.1
goto "loop"

5. there is no 5.  ;)
Not all is lost.

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:displaying player in map
« Reply #3 on: 24 Feb 2003, 19:10:32 »
Check out snYpirs introduction to code snippets in da editors depot if ya wanna know what a script is.

Sorry, I cant give ya a direct link cause my connection fails me sometimes and itÂ'll take ages before I reach the tute for ya ;). YouÂ'll have to find it yerself 8)

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:displaying player in map
« Reply #4 on: 25 Feb 2003, 02:36:44 »
Doesn't the player's position appear if you are in Cadet mode?    (No, I don't really know, I've never played C mode.)
Plenty of reviewed ArmA missions for you to play

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:displaying player in map
« Reply #5 on: 25 Feb 2003, 07:39:05 »
It does Macguba, and I never play in C-mode either  ::)  ;)
Not all is lost.

prostetnic

  • Guest
Re:displaying player in map
« Reply #6 on: 25 Feb 2003, 10:18:04 »
hrehehehehe

i forgot about cadet mode :)  it displays always there.   ok. ta.  scripting isn't an issue, its the basic things in life that i miss.... ;D