OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Echo Commando on 27 Aug 2003, 18:50:07

Title: Uh jim? I Think We're Lost...
Post by: Echo Commando on 27 Aug 2003, 18:50:07
 ;D Hi all...
I was just wondering... in the CTI maps you have a lil marker following you where ever you move, Does anyone know how i could do that... Heres the script i made (It doesn't work  :()

~2
marke1 setpos getpos east1


(East1 being the person i want the marker to follow...
And Marke1 Being the marker i wanted to follow him...)

Help would be nice... Just remember I AM MR. COMMANDO A No0B IN NEED!!
:gunman: :help::gunman: :help::gunman: :help::gunman: :help::gunman: :help::gunman: :help::gunman: :help::gunman: :help::gunman: :help::gunman: :help::gunman: :help::gunman: :help::gunman: :help::gunman: :help::gunman: :help::gunman: :help:
Title: Re:Uh jim? I Think We're Lost...
Post by: PheliCan on 29 Aug 2003, 00:01:22
It should be like this:

~2
marke1 setMarkerPos (getPos east1)

Don't know if you have to use the (), but it doesn't hurt... ;-)
Title: Re:Uh jim? I Think We're Lost...
Post by: Sui on 29 Aug 2003, 04:31:35
Marker names should always be in quotes ;)

Also, if you want the marker to keep following the unit, you'd need to use a loop, like this:

#loop
~1
"marker1" setmarkerpos (getpos east1)
goto "loop"