Resources: Difference between revisions

364 bytes added ,  17 October 2021
no edit summary
No edit summary
No edit summary
Line 19: Line 19:


Script files can be created with any of the supported languages: Lua, Squirrel, or JavaScript. These can be mixed in the same resource (although in different files). You can have one file running Lua, another with JavaScript, and another with Squirrel, all working together in the same resource.
Script files can be created with any of the supported languages: Lua, Squirrel, or JavaScript. These can be mixed in the same resource (although in different files). You can have one file running Lua, another with JavaScript, and another with Squirrel, all working together in the same resource.
== Example Directory Structure ==
Server.exe<br>
Server.xml<br>
resources/<br>
resources/resource1/<br>
resources/resource1/meta.xml<br>
resources/resource1/ResourceScript.js<br>
resources/resource2/<br>
resources/resource2/meta.xml<br>
resources/resource2/ResourceScript.js<br>
resources/resource2/ResourceScript.lua<br>
resources/resource2/ResourceScript.nut




6,833

edits