<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.crumbledworld.com/index.php?action=history&amp;feed=atom&amp;title=Global</id>
	<title>Global - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.crumbledworld.com/index.php?action=history&amp;feed=atom&amp;title=Global"/>
	<link rel="alternate" type="text/html" href="https://wiki.crumbledworld.com/index.php?title=Global&amp;action=history"/>
	<updated>2026-04-22T00:28:28Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.4</generator>
	<entry>
		<id>https://wiki.crumbledworld.com/index.php?title=Global&amp;diff=179&amp;oldid=prev</id>
		<title>Anders: /* Global functions */</title>
		<link rel="alternate" type="text/html" href="https://wiki.crumbledworld.com/index.php?title=Global&amp;diff=179&amp;oldid=prev"/>
		<updated>2025-08-03T13:15:55Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Global functions&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:15, 3 August 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l59&quot;&gt;Line 59:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 59:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|[[Global:abort(string message)|abort]](string message)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|[[Global:abort(string message)|abort]](&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[&lt;/ins&gt;string&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]] &lt;/ins&gt;message)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|crashes the lua script with a message&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|crashes the lua script with a message&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l132&quot;&gt;Line 132:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 132:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|number&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|number&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|[[Global:tonumber(nil value)|tonumber]](nil value)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|[[Global:tonumber(nil value)|tonumber]](nil value)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|Convert input to number.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|-&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|number&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|[[Global:tonumber(Object value)|tonumber]](Object value)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|Convert input to number.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|Convert input to number.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key mediawiki:diff:1.41:old-112:rev-179:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Anders</name></author>
	</entry>
	<entry>
		<id>https://wiki.crumbledworld.com/index.php?title=Global&amp;diff=112&amp;oldid=prev</id>
		<title>Anders: Created page with &quot;{{:GlobalExampleCode}}  ==Global members== {| class=&quot;wikitable&quot;  !|type !|variable !|description |- |float |PI |3.14159265359 |- |int |LUA_INDEX | |- |LuaWrapper |LUA | |- |}  ==Global functions== {| class=&quot;wikitable&quot; !|return !|function !|description |- | |require(string path) |Include another lua file. This is equal to just past in the file on this row. |- | |setRestoreData(nil data) |Set r...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.crumbledworld.com/index.php?title=Global&amp;diff=112&amp;oldid=prev"/>
		<updated>2025-07-05T14:22:34Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{:GlobalExampleCode}}  ==Global members== {| class=&amp;quot;wikitable&amp;quot;  !|type !|variable !|description |- |float |PI |3.14159265359 |- |int |LUA_INDEX | |- |&lt;a href=&quot;/index.php/LuaWrapper&quot; title=&quot;LuaWrapper&quot;&gt;LuaWrapper&lt;/a&gt; |LUA | |- |}  ==Global functions== {| class=&amp;quot;wikitable&amp;quot; !|return !|function !|description |- | |&lt;a href=&quot;/index.php?title=Global:require(string_path)&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Global:require(string path) (page does not exist)&quot;&gt;require&lt;/a&gt;(&lt;a href=&quot;/index.php/String&quot; title=&quot;String&quot;&gt;string&lt;/a&gt; path) |Include another lua file. This is equal to just past in the &lt;a href=&quot;/index.php/File&quot; title=&quot;File&quot;&gt;file&lt;/a&gt; on this row. |- | |&lt;a href=&quot;/index.php?title=Global:setRestoreData(nil_data)&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Global:setRestoreData(nil data) (page does not exist)&quot;&gt;setRestoreData&lt;/a&gt;(nil data) |Set r...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{:GlobalExampleCode}}&lt;br /&gt;
&lt;br /&gt;
==Global members==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
!|type&lt;br /&gt;
!|variable&lt;br /&gt;
!|description&lt;br /&gt;
|-&lt;br /&gt;
|float&lt;br /&gt;
|PI&lt;br /&gt;
|3.14159265359&lt;br /&gt;
|-&lt;br /&gt;
|int&lt;br /&gt;
|LUA_INDEX&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|[[LuaWrapper]]&lt;br /&gt;
|LUA&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Global functions==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!|return&lt;br /&gt;
!|function&lt;br /&gt;
!|description&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[Global:require(string path)|require]]([[string]] path)&lt;br /&gt;
|Include another lua file.&lt;br /&gt;
This is equal to just past in the [[file]] on this row.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[Global:setRestoreData(nil data)|setRestoreData]](nil data)&lt;br /&gt;
|Set restore data object. if data is set and the Lua script crashes the restore function is called with the first parameter being the restore data object.&lt;br /&gt;
If nil is set as data no restore function is called upon a Lua script crash.&lt;br /&gt;
|-&lt;br /&gt;
|nil,nil&lt;br /&gt;
|[[Global:ipairs(table tab)|ipairs]]([[table]] tab)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|nil,nil&lt;br /&gt;
|[[Global:pairs(table tab)|pairs]]([[table]] tab)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|nil,nil&lt;br /&gt;
|[[Global:spairs(table tab)|spairs]]([[table]] tab)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[Global:assert(object input1,string output)|assert]](object input1,string output)&lt;br /&gt;
|if input1 is false or nil, it will raises an error and print the output message&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[Global:abort()|abort]]()&lt;br /&gt;
|crashes the lua script&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[Global:abort(string message)|abort]](string message)&lt;br /&gt;
|crashes the lua script with a message&lt;br /&gt;
|-&lt;br /&gt;
|string&lt;br /&gt;
|[[Global:type(nil variable)|type]](nil variable)&lt;br /&gt;
|returns the type name of the lua object&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[Global:print(string msg)|print]](string msg)&lt;br /&gt;
|Print to console&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[Global:print(Text msg)|print]]([[Text]] msg)&lt;br /&gt;
|Print to console&lt;br /&gt;
|-&lt;br /&gt;
|bool&lt;br /&gt;
|[[Global:doLineCollide(Line3D line)|doLineCollide]]([[Line3D]] line)&lt;br /&gt;
|Do a [[collision]] against the entire world.&lt;br /&gt;
|-&lt;br /&gt;
|[[VectorVec3]]&lt;br /&gt;
|[[Global:createHullList3d(Mesh aMesh)|createHullList3d]]([[Mesh]] aMesh)&lt;br /&gt;
|Convert a [[mesh]] into a 3d hull.&lt;br /&gt;
|-&lt;br /&gt;
|[[VectorVec2]]&lt;br /&gt;
|[[Global:createHullList2d(Mesh aMesh)|createHullList2d]]([[Mesh]] aMesh)&lt;br /&gt;
|Convert a [[mesh]] into a 2d hull.&lt;br /&gt;
|-&lt;br /&gt;
|[[Matrix]]&lt;br /&gt;
|[[Global:generateRotationMatrix(float x, float y, float z, float rotation)|generateRotationMatrix]](float x, float y, float z, float rotation)&lt;br /&gt;
|Create a rotation [[matrix]].&lt;br /&gt;
|-&lt;br /&gt;
|[[Camera]]&lt;br /&gt;
|[[Global:ConvertToCamera(SceneNode node)|ConvertToCamera]]([[SceneNode]] node)&lt;br /&gt;
|Typecast node to [[camera]].&lt;br /&gt;
|-&lt;br /&gt;
|[[Panel]]&lt;br /&gt;
|[[Global:convertToPanel(LuaObject node)|convertToPanel]](LuaObject node)&lt;br /&gt;
|Typecast node to [[Panel]].&lt;br /&gt;
|-&lt;br /&gt;
|bool&lt;br /&gt;
|[[Global:getScreenPosInsideAnyForm(Vec2 pos)|getScreenPosInsideAnyForm]]([[Vec2]] pos)&lt;br /&gt;
|Return if the screen cordinate is inside any visible [[form]].&lt;br /&gt;
|-&lt;br /&gt;
|bool&lt;br /&gt;
|[[Global:tobool(bool value)|tobool]](bool value)&lt;br /&gt;
|Convert input to boolean.&lt;br /&gt;
|-&lt;br /&gt;
|bool&lt;br /&gt;
|[[Global:tobool(float value)|tobool]](float value)&lt;br /&gt;
|Convert input to boolean. 0 is false every thing else is true&lt;br /&gt;
|-&lt;br /&gt;
|bool&lt;br /&gt;
|[[Global:tobool(string value)|tobool]](string value)&lt;br /&gt;
|Convert input to boolean. &amp;quot;true&amp;quot; is true everything else is false&lt;br /&gt;
|-&lt;br /&gt;
|number&lt;br /&gt;
|[[Global:tonumber(number value)|tonumber]](number value)&lt;br /&gt;
|Convert input to number.&lt;br /&gt;
|-&lt;br /&gt;
|number&lt;br /&gt;
|[[Global:tonumber(bool value)|tonumber]](bool value)&lt;br /&gt;
|Convert input to number. return 0 or 1&lt;br /&gt;
|-&lt;br /&gt;
|number&lt;br /&gt;
|[[Global:tonumber(string value)|tonumber]](string value)&lt;br /&gt;
|Convert input to number.&lt;br /&gt;
|-&lt;br /&gt;
|number&lt;br /&gt;
|[[Global:tonumber(Text value)|tonumber]](Text value)&lt;br /&gt;
|Convert input to number.&lt;br /&gt;
|-&lt;br /&gt;
|number&lt;br /&gt;
|[[Global:tonumber(nil value)|tonumber]](nil value)&lt;br /&gt;
|Convert input to number.&lt;br /&gt;
|-&lt;br /&gt;
|string&lt;br /&gt;
|[[Global:tostring(nil)|tostring]](nil)&lt;br /&gt;
|Convert input to string.&lt;br /&gt;
|-&lt;br /&gt;
|string&lt;br /&gt;
|[[Global:tostring(boolean value)|tostring]](boolean value)&lt;br /&gt;
|Convert boolean to string.&lt;br /&gt;
|-&lt;br /&gt;
|string&lt;br /&gt;
|[[Global:tostring(string value)|tostring]](string value)&lt;br /&gt;
|Convert string to string.&lt;br /&gt;
|-&lt;br /&gt;
|string&lt;br /&gt;
|[[Global:tostring(table tab)|tostring]](table tab)&lt;br /&gt;
|Converts a table to string. can handle number,string,boolean,Vec2,Vec3,Vec4 and tables. The Table must be in a tree structure, as recursion will create an error&lt;br /&gt;
|-&lt;br /&gt;
|string&lt;br /&gt;
|[[Global:tabToStrMinimal(table tab)|tabToStrMinimal]](table tab)&lt;br /&gt;
|Converts a table to string. return a minimalistic string without unnecessary spacing and line breaks. return like &amp;quot;{param1=1,param2=23}&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|table&lt;br /&gt;
|[[Global:totable(string str)|totable]](string str)&lt;br /&gt;
|Must be Lua legal code and start with a table like table = {param1=1,param2=&amp;quot;str&amp;quot;}. can handle number,string,boolean,Vec2,Vec3,Vec4 and tables. The Table must be in a tree structure, as recursion will create an error.&lt;br /&gt;
|-&lt;br /&gt;
|[[Vec2]]&lt;br /&gt;
|[[Global:tovec2(string str)|tovec2]](string str)&lt;br /&gt;
|Convert String of format &amp;quot;Vec2(1,2)&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|[[Vec3]]&lt;br /&gt;
|[[Global:tovec3(string str)|tovec3]](string str)&lt;br /&gt;
|Convert String of format &amp;quot;Vec3(1,2,3)&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|[[Vec4]]&lt;br /&gt;
|[[Global:tovec4(string str)|tovec4]](string str)&lt;br /&gt;
|Convert String of format &amp;quot;Vec4(1,2,3,4)&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|number&lt;br /&gt;
|[[Global:getActiveScriptCounterTable()|getActiveScriptCounterTable]]()&lt;br /&gt;
|return the count of running script&lt;br /&gt;
|-&lt;br /&gt;
|{ name=string(), time=number(), count=number() }&lt;br /&gt;
|[[Global:getScriptTimeTable()|getScriptTimeTable]]()&lt;br /&gt;
|return a table of all script and amount of work time&lt;br /&gt;
|-&lt;br /&gt;
|{ name=string(), time=number(), count=number() }&lt;br /&gt;
|[[Global:getGroupScriptTimeTable()|getGroupScriptTimeTable]]()&lt;br /&gt;
|return a table of all script and amount of work time&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Global functions (map creation)==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!|return&lt;br /&gt;
!|function&lt;br /&gt;
!|description&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[Global:abort()|abort]]()&lt;br /&gt;
|Crashes the script&lt;br /&gt;
|-&lt;br /&gt;
|table&lt;br /&gt;
|[[Global:getCrashTable()|getCrashTable]]()&lt;br /&gt;
|Get crash table.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Anders</name></author>
	</entry>
</feed>