2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2015-05-09 02:47:15 +00:00
|
|
|
/*
|
|
|
|
* Author: commy2
|
2015-12-23 18:52:23 +00:00
|
|
|
* Checks if the unit can interact with civilian
|
2015-05-09 02:47:15 +00:00
|
|
|
*
|
|
|
|
* Arguments:
|
2015-09-28 13:37:18 +00:00
|
|
|
* 0: Unit <OBJECT>
|
2015-09-28 16:06:25 +00:00
|
|
|
* 1: Target <OBJECT>
|
|
|
|
* 2: Target has to be on the civilian side (default: true) <BOOL>
|
2015-05-09 02:47:15 +00:00
|
|
|
*
|
2015-09-28 13:37:18 +00:00
|
|
|
* Return Value:
|
2015-05-09 02:47:15 +00:00
|
|
|
* Able to interact with civilian <BOOL>
|
|
|
|
*
|
|
|
|
* Example:
|
2015-05-14 18:00:56 +00:00
|
|
|
* [target] call ace_interaction_fnc_canInteractWithCivilian
|
2015-05-09 02:47:15 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
2015-03-03 02:30:11 +00:00
|
|
|
|
2015-09-28 16:06:25 +00:00
|
|
|
params ["_unit", "_target", ["_isCivilian", true]];
|
2015-12-23 18:52:23 +00:00
|
|
|
alive _target && [side _target != side _unit, side group _target == civilian] select _isCivilian // return
|