mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
071a673f28
copied across treatment framework from medical and adjusted it to suit the repair actions
21 lines
449 B
Plaintext
21 lines
449 B
Plaintext
/*
|
|
* Author: Glowbal
|
|
* Check if vehicle is a engineeral vehicle
|
|
*
|
|
* Arguments:
|
|
* 0: The Vehicle <OBJECT>
|
|
*
|
|
* ReturnValue:
|
|
* Is in of engineer class <BOOL>
|
|
*
|
|
* Public: Yes
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
private ["_vehicle"];
|
|
_vehicle = _this select 0;
|
|
|
|
if (_vehicle isKindOf "CAManBase") exitwith {false};
|
|
|
|
((_vehicle getVariable [QGVAR(engineerClass), getNumber (configFile >> "CfgVehicles" >> typeOf _vehicle >> "engineer")]) > 0);
|