OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: klavan on 24 Jan 2005, 14:46:10
-
Is this possible?
I need to create a marker (wit a determinate size, name and colour) via external script.
Thanks.
-
I've never created a trigger before. Not sure if you can. But I do know u can make the marker invisible and then visible later on using
this setMarkerType "empty"
All marker types are name the same as they are called in the editor except Objective and Flag which are:
objective = "flag"
flag = "flag2"
-
I want to avoid creating 1000 + empty markers!
My ASW chopper should "place" a marker every time it deploy a sonar buoy, so It's impossible for me to determine the amount of marker needed, expecially if the chopper reload it's cargo of buoys when the firsts 100 are finished.
The reason is to let the players know where he deployed the buoys with a simple look over the map.
In addiction I've got another question: are the markers sensitive as objects?
E.g.: can I detect is a unit pass near a marker within a given rage using the "distance" command??
Edit: never mind about the second question. :P
-
AFAIK markers cannot be created, you have to use the empty marker trick. Make them empty again after a certain amount of time, to avoid cluttering the map.
-
actually, it would be really easy to do
if you notice when you copy something with a name, it just adds a number
so with a simple counting script and format, it would be pretty easy
-
Thanks Triggerhappy, I've already found the answer in a old thread of this forum.
OFPEC forever: yesterday, today, tomorrow!!!! :thumbsup: