mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
25 lines
526 B
Plaintext
25 lines
526 B
Plaintext
/*
|
|
* Author: commy2
|
|
* Checks if the player can interact with civilian
|
|
*
|
|
* Arguments:
|
|
* 0: Target <OBJECT>
|
|
*
|
|
* Return value:
|
|
* Able to interact with civilian <BOOL>
|
|
*
|
|
* Example:
|
|
* [target] call ace_interaction_fnc_canInteractWithCivilian
|
|
*
|
|
* Public: No
|
|
*/
|
|
#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
|
|
//&& {count (weapons _unit) == 0}
|