mirror of
https://github.com/acemod/ACE3.git
synced 2025-07-25 12:52:41 +00:00
* Update misc to use 2.18 commands * Update addons/common/functions/fnc_adjustMagazineAmmo.sqf
26 lines
529 B
Plaintext
26 lines
529 B
Plaintext
#include "..\script_component.hpp"
|
|
/*
|
|
* Author: esteldunedain
|
|
* Take full path and split it between parent path and action name
|
|
*
|
|
* Arguments:
|
|
* Full path of the action to remove <ARRAY>
|
|
*
|
|
* Return Value:
|
|
* 0: Parent path <ARRAY>
|
|
* 1: Action name <STRING>
|
|
*
|
|
* Example:
|
|
* ["ACE_TapShoulderRight", "VulcanPinch"] call ace_interact_menu_fnc_splitPath
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
private _parentPath = [];
|
|
|
|
_parentPath append _this;
|
|
|
|
private _actionName = (_parentPath deleteAt [-1]) param [0, ""];
|
|
|
|
[_parentPath, _actionName]
|