/* * Author: commy2 * Checks if the unit can interact with civilian on foot * * Arguments: * 0: Unit * 1: Target * 2: Target has to be on the civilian side (default: true) * * Return Value: * Able to interact with civilian * * Example: * [target] call ace_interaction_fnc_canInteractWithCivilian * * Public: No */ #include "script_component.hpp" params ["_unit", "_target", ["_isCivilian", true]]; alive _target && isNull objectParent _target && [side _target != side _unit, side group _target == civilian] select _isCivilian // return