mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
24 lines
530 B
Plaintext
24 lines
530 B
Plaintext
/*
|
|
* Author: commy2
|
|
* Check if the unit can remove given wheel/track of the vehicle.
|
|
*
|
|
* Arguments:
|
|
* 0: Unit that does the repairing <OBJECT>
|
|
* 1: Vehicle to repair <OBJECT>
|
|
* 2: Selected hitpoint <STRING>
|
|
*
|
|
* Return Value:
|
|
* Can Remove <BOOL>
|
|
*
|
|
* Example:
|
|
* [unit, vehicle, "hitpoint"] call ace_repair_fnc_canRemove
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
params ["_unit", "_target", "_hitPoint"];
|
|
TRACE_3("params",_unit,_target,_hitPoint);
|
|
|
|
alive _target && {_target getHitPointDamage _hitPoint < 1}
|