Effect is local in OFP.
Description
Moves the marker. If position is given in 3D format, z coordinate is stored with the marker and will be used when marker is passed to commands like createVehicle, createUnit, createAgent, createMine, setVehiclePosition for example. In case of an object, the object's model [0,0,0] is used.
Note
Multiplayer optimisation: Global marker commands always broadcast the entire marker state over the network. As such, the number of network messages exchanged when creating or editing a marker can be reduced by performing all but the last operation using local marker commands, then using a global marker command for the last change (and subsequent global broadcast of all changes applied to the marker).
Syntax
markerName setMarkerPos position
Parameters:
markerName: Stringposition: Position2D or PositionAGL or Arma 3 v1.94 Object. In case of an object, the object's model [0,0,0] is used.
Returns: Nothing
Examples
Example 1
"MarkerOne" setMarkerPos getMarkerPos "MarkerTwo";
See also
setMarkerPosLocal · setMarkerBrush · setMarkerColor · setMarkerDir · createMarker · setMarkerShape · setMarkerSize · setMarkerText · setMarkerType · setMarkerAlpha
Community notes
The marker position can actually be set in 3D. This has a benefit for respawn markers, when placed at the correct altitude ASL on the LHD, the correct altitude will be used for respawn. There is no particular benefit for regular markers since markerPos will still return 0 for the altitude array element. // Tip obtained from Xeno