2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2021-10-12 09:33:05 +00:00
|
|
|
/*
|
2023-08-16 23:18:01 +00:00
|
|
|
* Author: tcvm
|
2021-10-12 09:33:05 +00:00
|
|
|
* Condition for whether or not this object is a simulation type which can be a tow parent (TankX or CarX)
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Vehicle to tow from <OBJECT>
|
|
|
|
* 1: Check type - Parent or Child <NUMBER>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* Whether or not this vehicle can tow <BOOLEAN>
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* [cursorObject] call ace_towing_fnc_isSuitableSimulation
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
params ["_target"];
|
|
|
|
|
|
|
|
// need toLower since apparently this isn't case sensitive
|
|
|
|
private _simulationType = getText ((configOf _target) >> "simulation");
|
2024-02-05 18:54:51 +00:00
|
|
|
// TRACE_1("sim type",_simulationType);
|
2021-10-12 09:33:05 +00:00
|
|
|
|
|
|
|
// Biki lies, you can both tow and tow as either TankX or CarX
|
2024-03-07 21:08:13 +00:00
|
|
|
(toLowerANSI _simulationType) in ["tankx", "carx", "shipx"]
|