Difference between revisions of "setMarkerPosLocal"

From Bohemia Interactive Community
Jump to navigation Jump to search
(z is stored but use is limited)
m (Text replacement - "|= Game version" to "|Game version=")
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|= Comments
+
{{Command|Comments=
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| arma |= Game name
+
| arma |Game name=
  
|1.04|= Game version
+
|1.04|Game version=
  
|eff= local |= Effects in MP
+
|eff= local |Multiplayer Effects=
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| 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]] for example. However [[getMarkerPos]] and [[markerPos]] will always return 0 for <tt>z</tt>. |= Description
+
| 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=
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| markerName '''setMarkerPosLocal''' pos |= Syntax
+
| markerName '''setMarkerPosLocal''' pos |SYNTAX=
  
|p1= markerName: [[String]] |= Parameter 1
+
|p1= markerName: [[String]] |PARAMETER1=
|p2= pos: [[Array]] - format [[Position2D]] or [[PositionAGL]] |= Parameter 2
+
|p2= pos: [[Array]] - format [[Position2D]], [[PositionAGL]] or [[Object]] (since Arma 3 v1.93.145584) |PARAMETER2=
  
  
| [[Nothing]] |= Return value
+
| [[Nothing]] |RETURNVALUE=
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
 
   
 
   
|x1= <code>"MarkerOne" '''setMarkerPosLocal''' [[getMarkerPos]] "MarkerTwo";</code> |= Example 1
+
|x1= <code>"MarkerOne" '''setMarkerPosLocal''' [[getMarkerPos]] "MarkerTwo";</code> |EXAMPLE1=
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| [[setMarkerAlpha]], [[setMarkerAlphaLocal]], [[setMarkerBrush]], [[setMarkerBrushLocal]], [[setMarkerColor]], [[setMarkerColorLocal]], [[setMarkerDir]], [[setMarkerDirLocal]], [[setMarkerPos]], [[setMarkerShape]], [[setMarkerShapeLocal]], [[setMarkerSize]], [[setMarkerSizeLocal]], [[setMarkerText]], [[setMarkerTextLocal]], [[setMarkerType]], [[setMarkerTypeLocal]] |= See also
+
|[[setMarkerPos]], [[setMarkerAlphaLocal]], [[setMarkerBrushLocal]], [[setMarkerColorLocal]], [[setMarkerDirLocal]], [[setMarkerShapeLocal]], [[setMarkerSizeLocal]], [[setMarkerTextLocal]], [[setMarkerTypeLocal]]|SEEALSO=
  
 
}}
 
}}

Revision as of 19:53, 1 September 2019

Introduced with Armed Assault version 1.041.04
Effects of this scripting command are not broadcasted over the network and remain local to the client the command is executed on
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.93.145584)
Return Value:
Nothing

Examples

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

Additional Information

See also:
setMarkerPossetMarkerAlphaLocalsetMarkerBrushLocalsetMarkerColorLocalsetMarkerDirLocalsetMarkerShapeLocalsetMarkerSizeLocalsetMarkerTextLocalsetMarkerTypeLocal

Notes

i
Only post proven facts here. Report bugs on the feedback tracker. Use the Talk page or the Forums for discussions.

Notes

Bottom Section