OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: raggy99 on 05 May 2003, 07:04:43

Title: Object appears
Post by: raggy99 on 05 May 2003, 07:04:43
Is there some thing that makes a person or plane or can, anything apears on the map during the game. like a gps kindofthing so that appears even if it is a dot

thank you inadvance
RAGGY  
Title: Re:Object appears
Post by: macguba on 05 May 2003, 08:38:56
You can easily fake it with a marker.   Create a marker as you like and name it.    Then use this code in a script.  Syntax not guaranteed.

#loop
? not (alive loon1): goto "end"
"marker1" setMarkerPos getPos loon1
~3
goto "loop"

#end
"marker1" setMarkerType "empty"
exit
Title: Re:Object appears
Post by: raggy99 on 05 May 2003, 08:44:30
where do i put all that in
Title: Re:Object appears
Post by: macguba on 05 May 2003, 08:52:38
You need to make a script file.   Fortunately that's very easy. Read

snYpir's Friendly Introduction to Code Snippets
Johan Gustafsson's Scripting Guide