BIS fnc markerPath: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "\[\[Category:Function Group: [a-zA-Z0-9_: ]+(\|\{\{[a-zA-Z0-9_: ]+\}\})?\]\]" to " ") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Function|Comments= | {{Function|Comments= | ||
| tkoh |Game name= | | tkoh |Game name= | ||
Line 9: | Line 8: | ||
|eff= global |Effect in MP= | |eff= global |Effect in MP= | ||
| Create marker(s) between two points. |Description= | | Create marker(s) between two points. |Description= | ||
| [start, end, spacing, params] call [[BIS_fnc_markerPath]] |Syntax= | | [start, end, spacing, params] call [[BIS_fnc_markerPath]] |Syntax= | ||
Line 30: | Line 27: | ||
| [[Array]] - list of created markers |Return value= | | [[Array]] - list of created markers |Return value= | ||
|x1= <code>["markerStart", "markerEnd"] [[call]] [[BIS_fnc_markerPath]];</code> |Example 1= | |x1= <code>["markerStart", "markerEnd"] [[call]] [[BIS_fnc_markerPath]];</code> |Example 1= | ||
|x2= <code><nowiki>[</nowiki>[[player]], [[nearestLocation]] [<nowiki/>[[getPos]] [[player]], "nameCity"]] [[call]] [[BIS_fnc_markerPath]];</code> |Example 2= | |x2= <code><nowiki>[</nowiki>[[player]], [[nearestLocation]] [<nowiki/>[[getPos]] [[player]], "nameCity"]] [[call]] [[BIS_fnc_markerPath]];</code> |Example 2= | ||
| [[createMarker]], [[BIS_fnc_markWaypoints]] |See also= | | [[createMarker]], [[BIS_fnc_markWaypoints]] |See also= |
Revision as of 23:20, 16 January 2021
Description
- Description:
- Create marker(s) between two points.
- Execution:
- call
- Groups:
- Map and Markers
Syntax
- Syntax:
- [start, end, spacing, params] call BIS_fnc_markerPath
- Parameters:
- start: Position, Waypoint, Object, Location or String:
- end: same as start
- spacing: Number - (Optional, default 1000) distance between markers. When value is negative, line marker is used instead with thickness of this value
- params: Array - (Optional, default ["BIS_fnc_markerPath_marker_#", "mil_triangle", "colorgreen"]) marker params (see BIS_fnc_markerCreate for details)
- Return Value:
- Array - list of created markers
Examples
- Example 1:
["markerStart", "markerEnd"] call BIS_fnc_markerPath;
- Example 2:
[player, nearestLocation [getPos player, "nameCity"]] call BIS_fnc_markerPath;
Additional Information
- See also:
- createMarkerBIS_fnc_markWaypoints
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