Home   Help Search Login Register  

Author Topic: Moving a Marker  (Read 488 times)

0 Members and 1 Guest are viewing this topic.

Dirtman

  • Guest
Moving a Marker
« on: 29 Mar 2003, 06:02:32 »
Im working on a mission and what I want to do is place a marker on the map at the start.  As you move along the mission, I would like to have a trigger trip that would move the marker to a new location.  Is that possible.  The reason is a event is tied to the marker by the markers name.

Offline Hawkins

  • Former Staff
  • ****
  • Team 2-2
Re:Moving a Marker
« Reply #1 on: 29 Mar 2003, 08:53:02 »
You would like the marker to move to a possiton when a tigger is activated? Then do this:

Take the coordinates of the place you want the marker to move with the camera.sqs, in a tigger put supah exec "camera.sqs" and make a unit called supah inside the trigger and make the trigger activated by the side the unit is on. Then just preview the mission, move the cam to the pos (it's moves just like a unit but you must use the numpad arrows to rotate it) ans press CTRL. Then go to your Operation Flashpoint directory and find clipborad or sth like that there. Then just copy the _camera camSetPos coordinates. For example; [5416.34,5380.68,31.76]
Then just place this in the tirgger's init which has to completed so the marker would move: "markername" setmarkerpos [the coordinates you took]
That should do the trick. :P It's easy when you get the hang of it and that's what I use when I move markers. ;)

Hawkins
« Last Edit: 29 Mar 2003, 08:53:44 by Hawkins »

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Moving a Marker
« Reply #2 on: 29 Mar 2003, 12:07:57 »
You can move markers just like you move units

"marker1" setMarkerPos getPos loon1

for example.   Syntax, as ever, not guaranteed.    You can also change the colour or type of the marker, or whether it is hidden or not

setMarkerType
setMarkerColor (I think)

Hawkins method is an excellent way of getting exact coordinates.
Plenty of reviewed ArmA missions for you to play

Offline OFPWiZard

  • Members
  • *
Re:Moving a Marker
« Reply #3 on: 29 Mar 2003, 16:29:35 »

Yes...

marker setMarkerColor color

Operand types:
marker: String
color: String
Type of returned value:
Nothing
Description:
Set marker color. Color is one of: "Default", "ColorBlack", "ColorRed", "ColorRedAlpha", "ColorGreen", "ColorGreenAlpha", "ColorBlue", "ColorYellow", "ColorWhite".

Example:
"MarkerOne" setMarkerColor "ColorBlack"

markerName setMarkerType markerType

Operand types:
markerName: String
markerType: String
Type of returned value:
Nothing
Description:
Set marker type. Type may be any of: "Flag", "Flag1", "Dot", "Destroy", "Start", "End", "Warning", "Join", "Pickup", "Unknown", "Marker", "Arrow", "Empty".

Example:
"MarkerOne" setMarkerType "Arrow"

Dirtman

  • Guest
Re:Moving a Marker
« Reply #4 on: 29 Mar 2003, 20:59:10 »
Thanks...got it working
 :)