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:
|
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
|
|
|
#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}
|