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