2021-10-12 09:33:05 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
/*
|
2022-01-30 17:54:30 +00:00
|
|
|
* Author: Dani (TCVM)
|
2021-10-12 09:33:05 +00:00
|
|
|
* Condition for whether or not we can tow from this object
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Unit wanting to start towing <OBJECT>
|
|
|
|
* 1: Vehicle to tow from <OBJECT>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* Whether or not we can start towing <BOOLEAN>
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* [player, cursorObject] call ace_towing_fnc_canStartTow
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
params ["_unit", "_target"];
|
|
|
|
private _isTowing = _target getVariable [QGVAR(towing), false];
|
|
|
|
TRACE_1("is towing",_isTowing);
|
|
|
|
!_isTowing
|