setMarkerPosLocal: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \{\{GameCategory *\| *arma1 *\| *(New )?Scripting Commands\}\}" to "")
mNo edit summary
 
(23 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| arma1
|game1= arma1
|1.04
|version1= 1.04


|game2= arma2
|game2= arma2
Line 20: Line 20:
|eff= local
|eff= local


| Moves the marker. If position is given in 3D format, <tt>z</tt> 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, [[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. When [[Object]] is used for position, its [[getPosWorld]] is used.


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


|p1= markerName: [[String]]
|p1= markerName: [[String]]
|p2= pos: [[Array]] - format [[Position2D]], [[PositionAGL]] or [[Object]] (since Arma 3 v1.94)
|p2= pos: [[Array]] format [[Position#Introduction|Position2D]], [[Position#PositionAGL|PositionAGL]] or {{GVI|arma3|1.94|size= 0.75}} [[Object]] - object's '''model centre'''<nowiki/>'s position is used (see [[getPosWorld]])


|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]]
}}
}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}

Latest revision as of 22:35, 28 September 2023

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. When Object is used for position, its getPosWorld is used.
Groups:
Markers

Syntax

Syntax:
markerName setMarkerPosLocal pos
Parameters:
markerName: String
pos: Array format Position2D, PositionAGL or Arma 3 logo black.png1.94 Object - object's model centre's position is used (see getPosWorld)
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