ACE3/addons/tacticalladder/functions/fnc_pickupTL.sqf

27 lines
438 B
Plaintext
Raw Normal View History

/*
* Author: Rocko, Ruthberg
* Pick up tactical ladder
*
* Arguments:
* 0: ladder <OBJECT>
* 1: unit <OBJECT>
*
* Return Value:
2015-08-07 06:19:15 +00:00
* Success <BOOL>
*
* Example:
2015-08-07 06:19:15 +00:00
* [_ladder, _unit] call ace_tacticalladder_fnc_pickupTL
*
* Public: No
*/
#include "script_component.hpp"
if ((backpack ACE_player) != "") exitWith { false };
2015-08-07 06:19:15 +00:00
params ["_ladder", "_unit"];
deleteVehicle _ladder;
_unit addBackpack "ACE_TacticalLadder_Pack";
true