2015-05-09 02:47:15 +00:00
|
|
|
/*
|
|
|
|
* Author: commy2
|
|
|
|
* Checks if the player can interact with civilian
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Target <OBJECT>
|
|
|
|
*
|
|
|
|
* Return value:
|
|
|
|
* Able to interact with civilian <BOOL>
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* _bool = [target] call ace_interaction_fnc_canInteractWithCivilian
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
2015-03-03 02:30:11 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
EXPLODE_2_PVT(_this,_unit,_isCivilian);
|
|
|
|
|
|
|
|
if (isNil "_isCivilian") then {_isCivilian = true};
|
|
|
|
|
|
|
|
alive _unit
|
|
|
|
&& [side _unit != side ACE_player, side group _unit == civilian] select _isCivilian
|
2015-05-09 02:47:15 +00:00
|
|
|
//&& {count (weapons _unit) == 0}
|