Files
ACE3/addons/interact_menu/functions/fnc_splitPath.sqf
johnb432 5792eb2ee5 General - Update miscellaneous to use 2.18 commands (#10404)
* Update misc to use 2.18 commands

* Update addons/common/functions/fnc_adjustMagazineAmmo.sqf
2024-10-15 11:12:51 -05:00

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]