setMarkerPosLocal: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "PositionWorld" to "PositionWorld")
No edit summary
 
(16 intermediate revisions by 3 users not shown)
Line 20: Line 20:
|eff= local
|eff= local


|descr= Moves the marker. If position is given in 3D format, {{hl|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. When [[Object]] is used for position, [[Position#PositionWorld|PositionWorld]] of the object is used.
|descr= Moves the marker. If position is given in 3D format, {{hl|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.


|s1= markerName [[setMarkerPosLocal]] pos
|s1= markerName [[setMarkerPosLocal]] position


|p1= markerName: [[String]]
|p1= markerName: [[String]]
|p2= pos: [[Array]] - format [[Position#Introduction|Position2D]], [[Position#PositionAGL|PositionAGL]] or [[Object]] (since Arma 3 v1.94)
|p2= position: [[Array]] format [[Position#Introduction|Position2D]], [[Position#PositionAGL|PositionAGL]] or {{GVI|arma3|1.94|size= 0.75}} [[Object]]. In case of an object, the object's model [0,0,0] is used.
 
|r1= [[Nothing]]
|r1= [[Nothing]]


|x1= <code>"MarkerOne" '''setMarkerPosLocal''' [[getMarkerPos]] "MarkerTwo";</code>
|x1= <sqf>"MarkerOne" setMarkerPosLocal getMarkerPos "MarkerTwo";</sqf>


|seealso= [[setMarkerPos]], [[setMarkerAlphaLocal]], [[setMarkerBrushLocal]], [[setMarkerColorLocal]], [[setMarkerDirLocal]], [[setMarkerShapeLocal]], [[setMarkerSizeLocal]], [[setMarkerTextLocal]], [[setMarkerTypeLocal]]
|seealso= [[setMarkerPos]] [[setMarkerAlphaLocal]] [[setMarkerBrushLocal]] [[setMarkerColorLocal]] [[setMarkerDirLocal]] [[setMarkerShapeLocal]] [[setMarkerSizeLocal]] [[setMarkerTextLocal]] [[setMarkerTypeLocal]]
}}
}}

Latest revision as of 11:56, 1 November 2024

Hover & click on the images for description

Description

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.
Groups:
Markers

Syntax

Syntax:
markerName setMarkerPosLocal position
Parameters:
markerName: String
position: Array format Position2D, PositionAGL or Arma 3 logo black.png1.94 Object. In case of an object, the object's model [0,0,0] is used.
Return Value:
Nothing

Examples

Example 1:
"MarkerOne" setMarkerPosLocal getMarkerPos "MarkerTwo";

Additional Information

See also:
setMarkerPos setMarkerAlphaLocal setMarkerBrushLocal setMarkerColorLocal setMarkerDirLocal setMarkerShapeLocal setMarkerSizeLocal setMarkerTextLocal setMarkerTypeLocal

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note