ACE3/addons/csw/functions/fnc_getIn.sqf
2023-12-18 17:47:01 +01:00

25 lines
566 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: tcvm
* An action for the player to get in the CSW.
* Due to the fact that the default static weapons "Get In" memory point is at the front of
* the gun and can't be accessed from the back, I am implementing this to get around that issue.
*
* Arguments:
* 0: CSW <OBJECT>
* 1: Unit <OBJECT>
*
* Return Value:
* None
*
* Example:
* [cursorObject, player] call ace_csw_fnc_getIn
*
* Public: No
*/
params ["_vehicle", "_player"];
TRACE_2("getIn",_vehicle,_player);
_player moveInTurret [_vehicle, [0]];