Difference between revisions of "setMarkerPosLocal"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (setMarkerPos takes 3D Position)
(z is stored but use is limited)
Line 9: Line 9:
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| Moves the marker. |= 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]] for example. However [[getMarkerPos]] and [[markerPos]] will always return 0 for <tt>z</tt>. |= Description
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  

Revision as of 00:15, 21 August 2018

Introduced with Armed Assault version 1.041.04Effects 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 for example. However getMarkerPos and markerPos will always return 0 for z.

Syntax

Syntax:
markerName setMarkerPosLocal pos
Parameters:
markerName: String
pos: Array - format Position2D or PositionAGL
Return Value:
Nothing

Examples

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

Additional Information

See also:
setMarkerAlphasetMarkerAlphaLocalsetMarkerBrushsetMarkerBrushLocalsetMarkerColorsetMarkerColorLocalsetMarkerDirsetMarkerDirLocalsetMarkerPossetMarkerShapesetMarkerShapeLocalsetMarkerSizesetMarkerSizeLocalsetMarkerTextsetMarkerTextLocalsetMarkerTypesetMarkerTypeLocal

Notes

i
Only post proven facts here. Report bugs on the Feedback Tracker and discuss on the Arma Discord or on the Forums.

Notes

Bottom Section