setMarkerPosLocal: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[[cC]ategory:[sS]cripting [cC]ommands\|[a-z A-Z 0-9_]+\]\]" to "")
m (Text replacement - "\|s([0-9])\= ([^' ]+)'''([^' ]+)'''([^ ]*) " to "|s$1= $2$3$4 ")
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| arma1
|game1= arma1
|version1= 1.04


|1.04
|game2= arma2
|version2= 1.00


|gr1 = Markers
|game3= arma2oa
|version3= 1.50
 
|game4= tkoh
|version4= 1.00
 
|game5= arma3
|version5= 0.50
 
|gr1= Markers


|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, <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.


| 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.93.145584)
|p2= pos: [[Array]] - format [[Position2D]], [[PositionAGL]] or [[Object]] (since Arma 3 v1.94)
 
|r1=[[Nothing]]


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


|[[setMarkerPos]], [[setMarkerAlphaLocal]], [[setMarkerBrushLocal]], [[setMarkerColorLocal]], [[setMarkerDirLocal]], [[setMarkerShapeLocal]], [[setMarkerSizeLocal]], [[setMarkerTextLocal]], [[setMarkerTypeLocal]]
|seealso= [[setMarkerPos]], [[setMarkerAlphaLocal]], [[setMarkerBrushLocal]], [[setMarkerColorLocal]], [[setMarkerDirLocal]], [[setMarkerShapeLocal]], [[setMarkerSizeLocal]], [[setMarkerTextLocal]], [[setMarkerTypeLocal]]
}}
}}
{{GameCategory|arma1|Scripting Commands}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}

Revision as of 19:08, 20 June 2021

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, PositionWorld of the object is used.
Groups:
Markers

Syntax

Syntax:
markerName setMarkerPosLocal pos
Parameters:
markerName: String
pos: Array - format Position2D, PositionAGL or Object (since Arma 3 v1.94)
Return Value:
Nothing

Examples

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

Additional Information

See also:
setMarkerPossetMarkerAlphaLocalsetMarkerBrushLocalsetMarkerColorLocalsetMarkerDirLocalsetMarkerShapeLocalsetMarkerSizeLocalsetMarkerTextLocalsetMarkerTypeLocal

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