How to do an @editable map?

The documentation says that “maps of editable types” can be exposed, but I was unable to compile the following code:

powerup_manager := class(creative_device):
    @editable
    PowerUps : [int]visual_effect_powerup_device = map{}

The error is “Script error 9005: The editable attribute does not yet support properties of this type: MapProperty”. Does this mean that the documentation is wrong or am I missing anything?

1 Like

The @editable attribute is not supported for maps anyways. If you wish to do so you might want to separate the keys and values into arrays for each of them then combine them into a map on game start

In addition to that document, there are some stuff in the documentation that are not available such as the attribute@doc which does not exist outside of the documentation :man_shrugging:

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.