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
|
|
|
*
|
2015-01-11 16:42:31 +00:00
|
|
|
* Return value:
|
2015-09-18 13:40:51 +00:00
|
|
|
* Code <STRING>
|
|
|
|
*
|
|
|
|
* Public: Yes
|
2015-01-11 16:42:31 +00:00
|
|
|
*/
|
2015-01-13 19:56:02 +00:00
|
|
|
#include "script_component.hpp"
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2015-09-18 13:40:51 +00:00
|
|
|
params ["_function"];
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2015-11-20 17:40:31 +00:00
|
|
|
if (_function isEqualType "") exitWith {_function};
|
2015-01-11 16:42:31 +00:00
|
|
|
|
|
|
|
_function = toArray str _function;
|
2015-09-18 13:40:51 +00:00
|
|
|
_function deleteAt 0;
|
|
|
|
_function deleteAt (count _function - 1);
|
|
|
|
|
|
|
|
toString _function // return
|