Types
The attribute Type
is used to specify the type of script you are creating. The Type
attribute can be set to Client
, Server
, Module
, ClientAndServer
, or UI
.
This is important for the Studio to know how to handle the script. And will be set automatically when creating a new script from the Studio.
Here is an example of defining the script type in Lua:
--!Type(Client)
--!Type(Server)
--!Type(Module)
--!Type(ClientAndServer)
--!Type(UI)
Conclusion
By using the Type
attribute, you can specify the type of script you are creating in Highrise Studio. This attribute helps the Studio identify the script's purpose and handle it accordingly, ensuring seamless integration and functionality within your game project.