setMarkerPosLocal: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|Game version=" to "|Game version= |gr1 = Markers |=GROUP1 ")
No edit summary
 
(50 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma |Game name=
|game1= arma1
|version1= 1.04


|1.04|Game version=
|game2= arma2
|version2= 1.00


|gr1 = Markers |=GROUP1
|game3= arma2oa
|version3= 1.50


|game4= tkoh
|version4= 1.00


|game5= arma3
|version5= 0.50


|eff= local |Multiplayer Effects=
|gr1= Markers
____________________________________________________________________________________________


| 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. |DESCRIPTION=
|eff= local
____________________________________________________________________________________________


| markerName '''setMarkerPosLocal''' pos |SYNTAX=
|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.


|p1= markerName: [[String]] |PARAMETER1=
|s1= markerName [[setMarkerPosLocal]] position
|p2= pos: [[Array]] - format [[Position2D]], [[PositionAGL]] or [[Object]] (since Arma 3 v1.93.145584) |PARAMETER2=


|p1= markerName: [[String]]
|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]]


| [[Nothing]] |RETURNVALUE=
|x1= <sqf>"MarkerOne" setMarkerPosLocal getMarkerPos "MarkerTwo";</sqf>
____________________________________________________________________________________________
 
|x1= <code>"MarkerOne" '''setMarkerPosLocal''' [[getMarkerPos]] "MarkerTwo";</code> |EXAMPLE1=
____________________________________________________________________________________________
 
|[[setMarkerPos]], [[setMarkerAlphaLocal]], [[setMarkerBrushLocal]], [[setMarkerColorLocal]], [[setMarkerDirLocal]], [[setMarkerShapeLocal]], [[setMarkerSizeLocal]], [[setMarkerTextLocal]], [[setMarkerTypeLocal]]|SEEALSO=


|seealso= [[setMarkerPos]] [[setMarkerAlphaLocal]] [[setMarkerBrushLocal]] [[setMarkerColorLocal]] [[setMarkerDirLocal]] [[setMarkerShapeLocal]] [[setMarkerSizeLocal]] [[setMarkerTextLocal]] [[setMarkerTypeLocal]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|SETMARKERPOSLOCAL]]
[[Category:Scripting Commands Armed Assault|SETMARKERPOSLOCAL]]
[[Category:Command Group: Markers|SETMARKERPOSLOCAL]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]

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