• Studio

  • Bots

  • Web API

  • Designer Resources

  • Host Resources

  • CREATE

    Scripting

    Lua

    Attributes

    Edit

    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:

    Client Type Script

    --!Type(Client)
    

    Server Type Script

    --!Type(Server)
    

    Module Type Script

    --!Type(Module)
    

    ClientAndServer Type Script

    --!Type(ClientAndServer)
    

    UI Type Script

    --!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.

    Updated about 1 month ago

    PocketWorlds Icon

    © 2024 Pocket Worlds. All rights reserved.