Skip to content

Template Surface Statuses is not directly writeable #156

@Serpens66

Description

@Serpens66

Operating System

Windows

Extender Version

v60

Game Version

v3.6.117.3735

Bug Summary

The example from the docuemtation itself is causing an error, regardless when it is called (also runtime in console):
https://github.com/Norbyte/ositools/blob/master/Docs/LuaAPIDocs.md#surface-templates

Ext.GetSurfaceTemplate("Fire").Statuses = {{
    Duration = 12.0,
    KeepAlive = true,
    StatusId = "WET"
}}

Cannot set property SurfaceTemplate::Statuses - cannot write properties of this type
Also the table below that example says Statuses is writeable, but it is not.

I would like to add new statuses to surfaces, but it seems not to be possible currently, since it is not writeable. It does work though to change the values of already existing statuses: Ext.Surface.GetTemplate("Fire").Statuses[1].StatusId = "BLESSED"

edit:
Btw. Ext.Surface.GetTemplate does not know "DeathfogCloud".

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions