ACE3/addons/weapononback/functions/fnc_onWeaponChange.sqf
2019-08-06 00:27:06 +02:00

20 lines
356 B
Plaintext

#include "script_component.hpp"
/*
* Author: BaerMitUmlaut
* Handles switching to the weapon on the back.
*
* Arguments:
* 0: Player <OBJECT>
* 1: Weapon that was swapped to <STRING>
*
* Return Value:
* None
*
* Public: No
*/
params ["", "_weapon"];
if (_weapon != QGVAR(weapon)) exitWith {};
[FUNC(swap), [], 2] call CBA_fnc_waitAndExecute;