2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2015-06-12 21:54:51 +00:00
|
|
|
/*
|
2015-09-26 01:16:55 +00:00
|
|
|
* Author: Rocko, Ruthberg, commy2
|
2015-06-12 21:54:51 +00:00
|
|
|
* Pick up tactical ladder
|
|
|
|
*
|
|
|
|
* Arguments:
|
2015-09-26 01:16:55 +00:00
|
|
|
* 0: unit <OBJECT>
|
|
|
|
* 1: ladder <OBJECT>
|
2015-06-12 21:54:51 +00:00
|
|
|
*
|
|
|
|
* Return Value:
|
2015-08-07 06:19:15 +00:00
|
|
|
* Success <BOOL>
|
2015-06-12 21:54:51 +00:00
|
|
|
*
|
|
|
|
* Example:
|
2015-09-26 01:16:55 +00:00
|
|
|
* [_unit, _ladder] call ace_tacticalladder_fnc_pickupTL
|
2015-06-12 21:54:51 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
2015-06-03 18:27:52 +00:00
|
|
|
|
2015-09-26 01:16:55 +00:00
|
|
|
params ["_unit", "_ladder"];
|
2015-06-12 21:54:51 +00:00
|
|
|
|
2015-09-26 01:16:55 +00:00
|
|
|
if (backpack _unit != "") exitWith {false};
|
2015-06-03 18:27:52 +00:00
|
|
|
|
|
|
|
deleteVehicle _ladder;
|
2015-09-26 01:16:55 +00:00
|
|
|
|
2015-06-03 18:27:52 +00:00
|
|
|
_unit addBackpack "ACE_TacticalLadder_Pack";
|
2015-06-12 21:54:51 +00:00
|
|
|
|
|
|
|
true
|