mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
20 lines
356 B
Plaintext
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;
|