BIS_fnc_wpFormation

From Bohemia Interactive Community
Revision as of 23:23, 20 December 2019 by Lou Montana (talk | contribs) (Text replacement - "|= |p4=" to "|PARAMETER3= |p4=")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Introduced with Take On Helicopters version 1.001.00
Hover & click on the images for descriptions

Description

Description:
FORMATION custom waypoint. Player must stay within certain radius and angle towards followed vehicle.

Syntax

Syntax:
arguments: [failCode, maxTime, relPos, diffAlt, visualize]
Parameters:
failCode: Number - Code executed if unit spends too long outside formation
maxTime: Number - Time required to be spent in formation (default: 0)
When > 0, waypoint is completed once maxTime was reached.
When <= 0, waypoint is completed only when waypoint condition was met (always false in Function execution), and failCode is executed once maxTime is reached.
relPos: Array - in format [relDist, relAngle]
relDist: Number - required distance in meters from followed target (default: 100m)
relAngle Number - required relative angle in degrees from followed target (default: 180)
diffAlt: Number - Altitude tolerance in meters (default: -1)
visualize: Boolean - true to show hint (default: false)
Return Value:
Nothing

Examples

Example 1:
[player, dude, 80, {HSim_keptFormation = false}, -60, [80,160], 20, true] BIS_fnc_wpFormation;

Additional Information

Execution:
spawn
See also:
See also needed

Notes

i
Only post proven facts here. Report bugs on the feedback tracker. Use the Talk page or the Forums for discussions.

Notes

Bottom Section