Jump to content

Photo
- - - - -

CreateMarkers


  • Please log in to reply
2 replies to this topic
Thread Starter
_Lup_
_Lup_

    Newbie

  • Members
  • 1 posts

#1

Posted 03 March 2012 - 20:10

Hello all!
How I can create marker in script? What command?

createunit, createvehicle, camcreate... it work, but createmarker - no!

Please help me, I don't know what to do...

Poweruser
Poweruser

    Staff Sergeant

  • Members
  • 239 posts

#2

Posted 03 March 2012 - 20:38

How I can create marker in script?


You can not, as the script command createMarker does not exist in OFP. Neither in 1.96 nor in 1.99, even though the Changelog of 1.99 mentions:

- Changed: createMarker function now works only local

It was first added in ArmA 1.00

All markers that you want to use during the mission, have to be created at design-time in the mission editor.
ECS Team - Poweruser
formerly known as dengibtsschon

nikiller
nikiller

    Gunnery Sergeant

  • Members
  • 420 posts

#3

Posted 03 March 2012 - 21:43

hi,

Hello all!
How I can create marker in script? What command?

createunit, createvehicle, camcreate... it work, but createmarker - no!

Please help me, I don't know what to do...


As said above you can't create markers but there's workarounds. You can set marker's size or type.

In example, if you want invisible marker you can setMarkerSize to 0.
"markerName" setMarkerSize [0,0]
You can also setMarkerType to empty with this command
"markerName" setMarkerType "Empty"
Of course, you can reverse marker's size and/or type when needed.

You can check size and type with those commands getMarkerSize and getMarkerType.

cya.

Nikiller.

Edited by Nikiller, 03 March 2012 - 21:48.

[LOL] ofp/ArmA clan since 2004.
No Respawns, No Crosshairs, No Muppets.
Want a good ofp/ArmA2 coop? Visit the [LOL] clan homepage | ofp [LOL] addons pack | ArmA2 [LOL] addons pack

WW4mod25 sound replacement mod v1.1 | Nikiller's scripts pack