ACE3/addons/repair/functions/fnc_canRemoveWheel.sqf

19 lines
463 B
Plaintext
Raw Normal View History

2015-03-28 10:08:17 +00:00
/*
* Author: commy2
* Check if the unit can remove given wheel of the vehicle.
*
* Arguments:
2015-08-09 06:54:44 +00:00
* 0: Unit that does the repairing <OBJECT>
* 1: vehicle to repair <OBJECT>
* 2: Selected hitpoint <STRING>
2015-03-28 10:08:17 +00:00
*
* Return Value:
* NONE
*/
#include "script_component.hpp"
2015-08-09 06:54:44 +00:00
params ["_unit", "_target", "_hitPoint"];
TRACE_3("params",_unit,_target,_hitPoint);
2015-03-28 10:08:17 +00:00
alive _target && {_target getHitPointDamage _hitPoint > 0} && {_target getHitPointDamage _hitPoint < 1}