BIS fnc taskAttack: 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 | ||
| arma2 | | arma2 | ||
|1.00|= Game version | |1.00|= Game version | ||
|gr1 = Tasks | |gr1 = Tasks | ||
| This function adds a [[Waypoints#Seek_.26_Destroy|Seek and Destroy]] waypoint on defined position to the group and set its [[behaviour]] to "AWARE". If the group has other waypoints, the waypoint will be added at the end of the list. | | This function adds a [[Waypoints#Seek_.26_Destroy|Seek and Destroy]] waypoint on defined position to the group and set its [[behaviour]] to "AWARE". If the group has other waypoints, the waypoint will be added at the end of the list. | ||
| [group, position] call [[BIS_fnc_taskAttack]] | | [group, position] call [[BIS_fnc_taskAttack]] | ||
|p1= group: [[Group]] | |p1= group: [[Group]] | ||
|p2= position: [[Position]] | |p2= position: [[Position]] | ||
| [[Boolean]] | | [[Boolean]] | ||
|x1= <code>[opforGroup, [[getPosATL]] [[player]]] [[call]] [[BIS_fnc_taskAttack]];</code> | |x1= <code>[opforGroup, [[getPosATL]] [[player]]] [[call]] [[BIS_fnc_taskAttack]];</code> | ||
| [[addWaypoint]], [[Waypoints]], [[behaviour]] [[BIS_fnc_taskDefend]] [[BIS_fnc_taskPatrol]] | | [[addWaypoint]], [[Waypoints]], [[behaviour]] [[BIS_fnc_taskDefend]] [[BIS_fnc_taskPatrol]] | ||
}} | }} | ||
Revision as of 23:48, 17 January 2021
Description
- Description:
- This function adds a Seek and Destroy waypoint on defined position to the group and set its behaviour to "AWARE". If the group has other waypoints, the waypoint will be added at the end of the list.
- Execution:
- call
- Groups:
- Tasks
Syntax
- Syntax:
- [group, position] call BIS_fnc_taskAttack
- Parameters:
- group: Group
- position: Position
- Return Value:
- Boolean
Examples
- Example 1:
[opforGroup, getPosATL player] call BIS_fnc_taskAttack;
Additional Information
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