BIS fnc taskAttack: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - " |s1=[" to " |s1= [")
 
(32 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function|= Comments
{{RV|type=function
____________________________________________________________________________________________


| arma2 |= Game name
|game1= arma2
|version1= 1.00


|1.00|= Game version
|game2= arma2oa
____________________________________________________________________________________________
|version2= 1.50


| This function adds a [[Waypoint_types#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. |DESCRIPTION=
|game3= tkoh
____________________________________________________________________________________________
|version3= 1.00


| [group, position] call [[BIS_fnc_taskAttack]] |SYNTAX=
|game4= arma3
|version4= 0.50


|p1= group: [[Group]] |PARAMETER1=
|gr1= Tasks


|p2= position: [[Position]] |PARAMETER2=
|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.


| [[Boolean]] |RETURNVALUE=
|s1= [group, position] call [[BIS_fnc_taskAttack]]
____________________________________________________________________________________________


|x1= <code>[opforGroup, [[getPosATL]] [[player]]] [[call]] [[BIS_fnc_taskAttack]];</code> |EXAMPLE1=
|p1= group: [[Group]]
____________________________________________________________________________________________


| [[addWaypoint]], [[Waypoints]], [[behaviour]] [[BIS_fnc_taskDefend]] [[BIS_fnc_taskPatrol]] |SEEALSO=
|p2= position: [[Position]]
}}


<h3 style="display:none">Notes</h3>
|r1= [[Boolean]]
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|x1= <sqf>[opforGroup, getPosATL player] call BIS_fnc_taskAttack;</sqf>
</dl>


<h3 style="display:none">Bottom Section</h3>
|seealso= [[addWaypoint]] [[Waypoints]] [[behaviour]] [[BIS_fnc_taskDefend]] [[BIS_fnc_taskPatrol]]
[[Category:Function Group: Spawning|{{uc:taskAttack}}]]
}}
[[Category:Functions|{{uc:taskAttack}}]]
[[Category:{{Name|arma2}}: Functions|{{uc:taskAttack}}]]
[[Category:{{Name|arma2oa}}: Functions|{{uc:taskAttack}}]]
[[Category:{{Name|tkoh}}: Functions|{{uc:taskAttack}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:taskAttack}}]]

Latest revision as of 23:12, 12 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