ACE3/addons/common/functions/fnc_codeToString.sqf
jonpas 742626ff1a
General - Relative script_component.hpp includes (#9378)
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-09-12 20:58:10 +02:00

23 lines
418 B
Plaintext

#include "..\script_component.hpp"
/*
* 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
*/
params ["_code"];
if (_code isEqualType "") exitWith {_code};
toString _code