2015-06-12 21:54:51 +00:00
|
|
|
/*
|
|
|
|
* 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>
|
2015-06-12 21:54:51 +00:00
|
|
|
*
|
|
|
|
* Example:
|
2015-08-07 06:19:15 +00:00
|
|
|
* [_ladder, _unit] call ace_tacticalladder_fnc_pickupTL
|
2015-06-12 21:54:51 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
2015-06-03 18:27:52 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-06-12 21:54:51 +00:00
|
|
|
if ((backpack ACE_player) != "") exitWith { false };
|
|
|
|
|
2015-08-07 06:19:15 +00:00
|
|
|
params ["_ladder", "_unit"];
|
2015-06-03 18:27:52 +00:00
|
|
|
|
|
|
|
deleteVehicle _ladder;
|
|
|
|
_unit addBackpack "ACE_TacticalLadder_Pack";
|
2015-06-12 21:54:51 +00:00
|
|
|
|
|
|
|
true
|