BIS fnc scriptedWaypointType: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| arma3 | | arma3 | ||
|1.00 | |1.00 | ||
|gr1 = Waypoints | |gr1 = Waypoints | ||
| Return CfgWaypoints type of scripted waypoint. | | Return CfgWaypoints type of scripted waypoint. | ||
Returns empty string/config when waypoint is not scripted | Returns empty string/config when waypoint is not scripted | ||
Returns "Custom"/CfgWaypoints root when waypoint is using custom script. | Returns "Custom"/CfgWaypoints root when waypoint is using custom script. | ||
| [waypoint,type] call [[BIS_fnc_scriptedWaypointType]] | | [waypoint,type] call [[BIS_fnc_scriptedWaypointType]] | ||
|p1=waypoint: [[Array]] - Waypoint in question | |p1=waypoint: [[Array]] - Waypoint in question | ||
|p2=type: [[String]] or [[Config]] - (Optional, default [[configFile]]) Type of returned value, can by any string and any config | |p2=type: [[String]] or [[Config]] - (Optional, default [[configFile]]) Type of returned value, can by any string and any config | ||
| [[String]] or [[Config]] - String in format ("category/class") or config in format (CfgWaypoints path) | | [[String]] or [[Config]] - String in format ("category/class") or config in format (CfgWaypoints path) | ||
|x1= <code>[BIS_scripted_WP_01,"returnString"] [[call]] [[BIS_fnc_scriptedWaypointType]];</code> | |x1= <code>[BIS_scripted_WP_01,"returnString"] [[call]] [[BIS_fnc_scriptedWaypointType]];</code> | ||
| [[Waypoints]], [[Custom Waypoints]] | | [[Waypoints]], [[Custom Waypoints]] | ||
}} | }} | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> |
Revision as of 00:44, 18 January 2021
Description
- Description:
- Return CfgWaypoints type of scripted waypoint. Returns empty string/config when waypoint is not scripted Returns "Custom"/CfgWaypoints root when waypoint is using custom script.
- Execution:
- call
- Groups:
- Waypoints
Syntax
- Syntax:
- [waypoint,type] call BIS_fnc_scriptedWaypointType
- Parameters:
- waypoint: Array - Waypoint in question
- type: String or Config - (Optional, default configFile) Type of returned value, can by any string and any config
- Return Value:
- String or Config - String in format ("category/class") or config in format (CfgWaypoints path)
Examples
- Example 1:
[BIS_scripted_WP_01,"returnString"] call BIS_fnc_scriptedWaypointType;
Additional Information
- See also:
- WaypointsCustom Waypoints
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