OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Dirtman 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.
-
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
-
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.
-
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"
-
Thanks...got it working
:)