BIS fnc wpFormation: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "= <code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-_]+)\]\]([^<]*)<\/code>" to "= <code>$1$2$3</code>") |
Lou Montana (talk | contribs) m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *T([a-z ])" to "$1 - t$2") |
||
(4 intermediate revisions by the same user not shown) | |||
Line 14: | Line 14: | ||
|s1= [[Custom Waypoints#Function|Custom Waypoint arguments]]: [failCode, maxTime, relPos, diffAlt, visualize] | |s1= [[Custom Waypoints#Function|Custom Waypoint arguments]]: [failCode, maxTime, relPos, diffAlt, visualize] | ||
|p1= failCode: [[Number]] - | |p1= failCode: [[Number]] - code executed if unit spends too long outside formation | ||
|p2= maxTime: [[Number]] - | |p2= 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 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 | * when <= 0, waypoint is completed only when waypoint condition was met (always [[false]] in Function execution), and ''failCode'' is executed once ''maxTime'' is reached | ||
Line 24: | Line 24: | ||
* relAngle [[Number]] - required relative angle in degrees from followed target (default: 180) | * relAngle [[Number]] - required relative angle in degrees from followed target (default: 180) | ||
|p4= diffAlt: [[Number]] - | |p4= diffAlt: [[Number]] - altitude tolerance in meters (default: -1) | ||
|p5= visualize: [[Boolean]] - true to show hint (default: false) | |p5= visualize: [[Boolean]] - true to show hint (default: false) | ||
Line 30: | Line 30: | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|x1= < | |x1= <sqf>[player, dude, 80, { HSim_keptFormation = false }, -60, [80,160], 20, true] spawn BIS_fnc_wpFormation;</sqf> | ||
|seealso= | |seealso= | ||
}} | }} |
Latest revision as of 15:50, 8 November 2023
Description
- Description:
- FORMATION custom waypoint. Player must stay within certain radius and angle towards followed vehicle.
- Execution:
- spawn
- Groups:
- Waypoints
Syntax
- Syntax:
- Custom Waypoint 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]:
- diffAlt: Number - altitude tolerance in meters (default: -1)
- visualize: Boolean - true to show hint (default: false)
- Return Value:
- Nothing
Examples
- Example 1:
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