ACE3/addons/weapononback/functions/fnc_onWeaponChange.sqf

20 lines
356 B
Plaintext
Raw Normal View History

2019-08-05 22:27:06 +00:00
#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;