Home   Help Search Login Register  

Author Topic: Creating Markers via script. Possible?  (Read 470 times)

0 Members and 2 Guests are viewing this topic.

klavan

  • Guest
Creating Markers via script. Possible?
« 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.

Offline XCess

  • Former Staff
  • ****
Re:Creating Markers via script. Possible?
« Reply #1 on: 24 Jan 2005, 14:51:56 »
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"

klavan

  • Guest
Re:Creating Markers via script. Possible?
« Reply #2 on: 24 Jan 2005, 15:01:34 »
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
« Last Edit: 24 Jan 2005, 15:13:57 by klavan »

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Creating Markers via script. Possible?
« Reply #3 on: 24 Jan 2005, 15:51:36 »
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.
Plenty of reviewed ArmA missions for you to play

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:Creating Markers via script. Possible?
« Reply #4 on: 24 Jan 2005, 22:34:56 »
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

klavan

  • Guest
Re:Creating Markers via script. Possible?
« Reply #5 on: 25 Jan 2005, 18:34:37 »
Thanks Triggerhappy, I've already found the answer in a old thread of this forum.
OFPEC forever: yesterday, today, tomorrow!!!! :thumbsup:
« Last Edit: 25 Jan 2005, 18:34:52 by klavan »