setMarkerPosLocal: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) |
Lou Montana (talk | contribs) (Remove PositionWorld) |
||
Line 20: | Line 20: | ||
|eff= local | |eff= local | ||
|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. When [[Object]] is used for position, [[ | |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. When [[Object]] is used for position, its [[getPosWorld]] is used. | ||
|s1= markerName [[setMarkerPosLocal]] pos | |s1= markerName [[setMarkerPosLocal]] pos | ||
|p1= markerName: [[String]] | |p1= markerName: [[String]] | ||
|p2= pos: [[Array]] - format [[Position#Introduction|Position2D]], [[Position#PositionAGL|PositionAGL]] or [[Object]] ( | |p2= pos: [[Array]] - format [[Position#Introduction|Position2D]], [[Position#PositionAGL|PositionAGL]] or {{GVI|arma3|1.94|size=0.75}} [[Object]] - object's '''model centre'''<nowiki/>'s position is used (see [[getPosWorld]]) | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|x1= <code>"MarkerOne" | |x1= <code>"MarkerOne" [[setMarkerPosLocal]] [[getMarkerPos]] "MarkerTwo";</code> | ||
|seealso= [[setMarkerPos]] [[setMarkerAlphaLocal]] [[setMarkerBrushLocal]] [[setMarkerColorLocal]] [[setMarkerDirLocal]] [[setMarkerShapeLocal]] [[setMarkerSizeLocal]] [[setMarkerTextLocal]] [[setMarkerTypeLocal]] | |seealso= [[setMarkerPos]] [[setMarkerAlphaLocal]] [[setMarkerBrushLocal]] [[setMarkerColorLocal]] [[setMarkerDirLocal]] [[setMarkerShapeLocal]] [[setMarkerSizeLocal]] [[setMarkerTextLocal]] [[setMarkerTypeLocal]] | ||
}} | }} |
Revision as of 18:27, 1 February 2022
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, its getPosWorld is used.
- Groups:
- Markers
Syntax
- Syntax:
- markerName setMarkerPosLocal pos
- Parameters:
- markerName: String
- pos: Array - format Position2D, PositionAGL or 1.94 Object - object's model centre's position is used (see getPosWorld)
- 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
Categories:
- Scripting Commands
- Introduced with Armed Assault version 1.04
- ArmA: Armed Assault: New Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: Markers
- Scripting Commands: Local Effect