Difference between revisions of "setMarkerPosLocal"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (VBS2 scripting category removal)
m (Text replacement - "\|gr([0-9]+) = " to "|gr$1= ")
 
(36 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{Command|= Comments
+
{{RV|type=command
____________________________________________________________________________________________
 
  
| arma |= Game name
+
| arma1
  
|1.04|= Game version
+
|1.04
  
|eff= local |= Effects in MP
+
|gr1= Markers
____________________________________________________________________________________________
 
  
| Moves the marker. Pos format is [[Position2D]]. |= Description
+
|eff= local
____________________________________________________________________________________________
 
  
| markerName '''setMarkerPosLocal''' pos |= Syntax
+
| 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.
  
|p1= markerName: [[String]] |= Parameter 1
+
| markerName '''setMarkerPosLocal''' pos
|p2= pos: [[Array]] - format [[Position2D]] |= Parameter 2
 
  
 +
|p1= markerName: [[String]]
 +
|p2= pos: [[Array]] - format [[Position2D]], [[PositionAGL]] or [[Object]] (since Arma 3 v1.94)
  
| [[Nothing]] |= Return value
+
| [[Nothing]]
____________________________________________________________________________________________
 
 
   
 
   
|x1= <code>"MarkerOne" '''setMarkerPosLocal''' [[getMarkerPos]] "MarkerTwo"</code> |= Example 1
+
|x1= <code>"MarkerOne" '''setMarkerPosLocal''' [[getMarkerPos]] "MarkerTwo";</code>
____________________________________________________________________________________________
 
 
 
|  |= See also
 
  
 +
|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>
+
{{GameCategory|arma1|Scripting Commands}}
[[Category:Scripting Commands|SETMARKERPOSLOCAL]]
+
{{GameCategory|arma2|Scripting Commands}}
[[Category:Scripting Commands ArmA|SETMARKERPOSLOCAL]]
+
{{GameCategory|arma3|Scripting Commands}}
[[Category:Command Group: Markers|SETMARKERPOSLOCAL]]
+
{{GameCategory|tkoh|Scripting Commands}}
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
 

Latest revision as of 13:52, 11 April 2021

Hover & click on the images for descriptions

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.

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

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