BIS fnc taskAttack: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
(Page filling)
Line 1: Line 1:
{{Function|= Comments
{{Function|= Comments
____________________________________________________________________________________________
____________________________________________________________________________________________
Line 8: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>
| 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
/*
____________________________________________________________________________________________
File: taskAttack.sqf
 
Description:
Group will attack the position.
 
Parameter(s):
_this select 0: group (Group)
_this select 1: attack position (Array)
Returns:
Boolean - success flag
*/


//Validate parameter count
| [group, position] call [[BIS_fnc_taskAttack]] |= Syntax
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_taskAttack]]; --> |= Syntax
|p1= group: [[Group]] |= Parameter 1


|p1= |= Parameter 1
|p2= position: [[Position]] |= Parameter 2


| |= Return value
| [[Boolean]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________


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


| |= See also
| [[addWaypoint]], [[Waypoints]], [[behaviour]] |= See also
 
}}
}}



Revision as of 21:17, 29 April 2018

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:
Uncategorised

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:
addWaypointWaypointsbehaviour

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

Notes

Bottom Section