BIS fnc taskAttack: 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 - " |s1=[" to " |s1= [")
 
(One intermediate revision by the same user not shown)
Line 17: Line 17:
|descr= 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.
|descr= 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.


|s1=[group, position] call [[BIS_fnc_taskAttack]]
|s1= [group, position] call [[BIS_fnc_taskAttack]]


|p1= group: [[Group]]
|p1= group: [[Group]]
Line 25: Line 25:
|r1= [[Boolean]]
|r1= [[Boolean]]


|x1= <code>[opforGroup, getPosATL player] call BIS_fnc_taskAttack;</code>
|x1= <sqf>[opforGroup, getPosATL player] call BIS_fnc_taskAttack;</sqf>


|seealso= [[addWaypoint]] [[Waypoints]] [[behaviour]] [[BIS_fnc_taskDefend]] [[BIS_fnc_taskPatrol]]
|seealso= [[addWaypoint]] [[Waypoints]] [[behaviour]] [[BIS_fnc_taskDefend]] [[BIS_fnc_taskPatrol]]
}}
}}

Latest revision as of 00:12, 13 July 2022

Hover & click on the images for description

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

See also:
addWaypoint Waypoints behaviour BIS_fnc_taskDefend BIS_fnc_taskPatrol

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