Scripted - originalfoo/Prison-Architect-API GitHub Wiki

##Overview

The Scripted property indicates that an object has an associated Lua script.

##Syntax

This optional setting is used in materials.txt and must be within a BEGIN Object ... definition block. It can be used only once per definition block.

    Properties Scripted

##Notes

If the setting is used, there must be an associated script in the data/scripts/ folder.

The filename is should be in the form:

The <objectId> is the value of the Name setting in the object being defined in materials.txt and should use the same capitalisation to avoid issues on Linux operating systems.

For example, if your object's Name in materials.txt is MyFirstObject then PA will expect to find the script here:

YourModFolder/data/scripts/MyFirstObject.lua

##See Also

⚠️ **GitHub.com Fallback** ⚠️