BIS fnc wpAerobatics: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*) *<\/code>" to "<code>$1$2$3</code>")
m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*) *<\/code>" to "<code>$1$2$3</code>")
Line 25: Line 25:
|p3= completionCode: [[Code]] - code executed on manoeuvre's success (under 15s)
|p3= completionCode: [[Code]] - code executed on manoeuvre's success (under 15s)
<code>private ["_helicopter", "_manoeuvreName"];
<code>private ["_helicopter", "_manoeuvreName"];
_helicopter = [[_this]] [[select]] 0;
_helicopter = [[_this]] select 0;
_manoeuvreName = [[_this]] [[select]] 1;
_manoeuvreName = [[_this]] [[select]] 1;
</code>
</code>

Revision as of 21:38, 12 July 2022

Hover & click on the images for description

Description

Description:
AEROBATICS custom waypoint. Player must perform all the required manoeuvres:
  • "hover_turn_360"
  • "hover_bow"
  • "fast_turn_180"
  • "backwards"
  • "strafe"
Execution:
spawn
Groups:
Waypoints

Syntax

Syntax:
Custom Waypoint arguments: [visuals, detectionCode, completionCode]
Parameters:
visuals: Boolean - should dynamic text appear on startup and completion
detectionCode: Code - code executed once the helicopter is ready (speed < 10 km/h)
completionCode: Code - code executed on manoeuvre's success (under 15s) private ["_helicopter", "_manoeuvreName"]; _helicopter = _this select 0; _manoeuvreName = _this select 1;
Return Value:
Nothing

Examples

Example 1:
[player, { hint "OK, start!" }, { hint "success!" }] spawn BIS_fnc_wpAerobatics;

Additional Information

See also:
See also needed

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