2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2015-01-11 16:42:31 +00:00
|
|
|
/*
|
|
|
|
* Author: commy2
|
|
|
|
* Removes the brackets around a code and returns the code as a string. It does nothing if the code is already a string.
|
2015-01-12 04:02:33 +00:00
|
|
|
*
|
2015-09-18 14:41:00 +00:00
|
|
|
* Arguments:
|
2015-09-18 13:40:51 +00:00
|
|
|
* 0: Code <CODE, STRING>
|
2015-01-12 04:02:33 +00:00
|
|
|
*
|
2016-06-18 09:50:41 +00:00
|
|
|
* Return Value:
|
2015-09-18 13:40:51 +00:00
|
|
|
* Code <STRING>
|
|
|
|
*
|
2017-06-08 13:31:51 +00:00
|
|
|
* Example:
|
|
|
|
* ["bob"] call ace_common_fnc_codeToString
|
|
|
|
*
|
2015-09-18 13:40:51 +00:00
|
|
|
* Public: Yes
|
2015-01-11 16:42:31 +00:00
|
|
|
*/
|
|
|
|
|
2016-03-30 21:02:52 +00:00
|
|
|
params ["_code"];
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2023-07-09 20:41:12 +00:00
|
|
|
if (_code isEqualType "") exitWith {_code};
|
2015-09-18 13:40:51 +00:00
|
|
|
|
2023-07-09 20:41:12 +00:00
|
|
|
toString _code
|