ACE3/addons/common/functions/fnc_codeToString.sqf
Phyma ffaa195fe5 Conform function headers to coding guidelines (#5255)
* Fixed headers to work with silentspike python script

* Fixed rest of the files

* Fixed ace-team
2017-06-08 15:31:51 +02:00

26 lines
470 B
Plaintext

/*
* 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.
*
* Arguments:
* 0: Code <CODE, STRING>
*
* Return Value:
* Code <STRING>
*
* Example:
* ["bob"] call ace_common_fnc_codeToString
*
* Public: Yes
*/
#include "script_component.hpp"
params ["_code"];
if (_code isEqualType "") exitWith {_code};
_code = str(_code);
_code = _code select [1, count _code - 2];
_code