ACE3/addons/interaction/functions/fnc_canInteractWithCivilian.sqf

22 lines
549 B
Plaintext
Raw Normal View History

#include "..\script_component.hpp"
/*
* Author: commy2
2015-12-23 18:52:23 +00:00
* Checks if the unit can interact with civilian
*
* 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-09-28 13:37:18 +00:00
* Return Value:
* Able to interact with civilian <BOOL>
*
* Example:
2015-05-14 18:00:56 +00:00
* [target] call ace_interaction_fnc_canInteractWithCivilian
*
* 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