<?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=LuaScript</id>
	<title>LuaScript - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.crumbledworld.com/index.php?action=history&amp;feed=atom&amp;title=LuaScript"/>
	<link rel="alternate" type="text/html" href="https://wiki.crumbledworld.com/index.php?title=LuaScript&amp;action=history"/>
	<updated>2026-04-21T23:14:47Z</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=LuaScript&amp;diff=120&amp;oldid=prev</id>
		<title>Anders: Created page with &quot;{{:LuaScriptExampleCode}}  ==Functions== {| class=&quot;wikitable&quot; !|return !|function !|description |- |string |getName() |Get work name. |- |string |getNetworkName() |Get unique network name. |- |int |getIndex() |Get Lua index, the index is unique.  |- |string |getFileName() |Get the file name of the script. folder Path is not included. |- |Billboard |...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.crumbledworld.com/index.php?title=LuaScript&amp;diff=120&amp;oldid=prev"/>
		<updated>2025-07-05T14:24:04Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{:LuaScriptExampleCode}}  ==Functions== {| class=&amp;quot;wikitable&amp;quot; !|return !|function !|description |- |&lt;a href=&quot;/index.php/String&quot; title=&quot;String&quot;&gt;string&lt;/a&gt; |&lt;a href=&quot;/index.php?title=LuaScript:getName()&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;LuaScript:getName() (page does not exist)&quot;&gt;getName&lt;/a&gt;() |Get work name. |- |&lt;a href=&quot;/index.php/String&quot; title=&quot;String&quot;&gt;string&lt;/a&gt; |&lt;a href=&quot;/index.php?title=LuaScript:getNetworkName()&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;LuaScript:getNetworkName() (page does not exist)&quot;&gt;getNetworkName&lt;/a&gt;() |Get unique network name. |- |int |&lt;a href=&quot;/index.php?title=LuaScript:getIndex()&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;LuaScript:getIndex() (page does not exist)&quot;&gt;getIndex&lt;/a&gt;() |Get Lua index, the index is unique.  |- |&lt;a href=&quot;/index.php/String&quot; title=&quot;String&quot;&gt;string&lt;/a&gt; |&lt;a href=&quot;/index.php?title=LuaScript:getFileName()&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;LuaScript:getFileName() (page does not exist)&quot;&gt;getFileName&lt;/a&gt;() |Get the file name of the script. folder Path is not included. |- |&lt;a href=&quot;/index.php/Billboard&quot; title=&quot;Billboard&quot;&gt;Billboard&lt;/a&gt; |...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{:LuaScriptExampleCode}}&lt;br /&gt;
&lt;br /&gt;
==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;
|[[string]]&lt;br /&gt;
|[[LuaScript:getName()|getName]]()&lt;br /&gt;
|Get work name.&lt;br /&gt;
|-&lt;br /&gt;
|[[string]]&lt;br /&gt;
|[[LuaScript:getNetworkName()|getNetworkName]]()&lt;br /&gt;
|Get unique network name.&lt;br /&gt;
|-&lt;br /&gt;
|int&lt;br /&gt;
|[[LuaScript:getIndex()|getIndex]]()&lt;br /&gt;
|Get Lua index, the index is unique. &lt;br /&gt;
|-&lt;br /&gt;
|[[string]]&lt;br /&gt;
|[[LuaScript:getFileName()|getFileName]]()&lt;br /&gt;
|Get the file name of the script. folder Path is not included.&lt;br /&gt;
|-&lt;br /&gt;
|[[Billboard]]&lt;br /&gt;
|[[LuaScript:getBillboard()|getBillboard]]()&lt;br /&gt;
|Get the Billboard connected to this script.&lt;br /&gt;
|-&lt;br /&gt;
|[[SceneNode]]&lt;br /&gt;
|[[LuaScript:getParentNode()|getParentNode]]()&lt;br /&gt;
|Returns the SceneNode which it is connected to&lt;br /&gt;
|-&lt;br /&gt;
|[[Billboard]]&lt;br /&gt;
|[[LuaScript:getBillboard()|getBillboard]]()&lt;br /&gt;
|Get this scripts billboard. Billboards is used to relay information to other script.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[LuaScript:callFunction(string name)|callFunction]]([[string]] name)&lt;br /&gt;
|Call a given lua function without any parameters and no return variables.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[LuaScript:setName(string name)|setName]]([[string]] name)&lt;br /&gt;
|Set scripts name. Used to identify this script  from other script.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[LuaScript:setScriptNetworkId(string name)|setScriptNetworkId]]([[string]] name)&lt;br /&gt;
|Set a unique name to be able to use ComUnit::sendNetworkSync&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[LuaScript:update()|update]]()&lt;br /&gt;
|force update.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Anders</name></author>
	</entry>
</feed>