mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
28 lines
386 B
Plaintext
28 lines
386 B
Plaintext
#include "script_component.hpp"
|
|
/*
|
|
* Author: Glowbal
|
|
*
|
|
*
|
|
* Arguments:
|
|
* 0: details entry <STRING>
|
|
*
|
|
* Return Value:
|
|
* ID <STRING>
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
|
|
params ["_detailsEntry"];
|
|
|
|
private _index = _detailsEntry find "[";
|
|
private _id = "";
|
|
|
|
if (_index > 0) then {
|
|
private _value = toArray _detailsEntry;
|
|
_value deleteRange [0, _index];
|
|
_id = toString _value;
|
|
};
|
|
|
|
_id
|