Using the @editable attribute for abstract (or non-concrete) classes

I want a device to run some logic after entering any vehicle type. So I’ve declared this variable in my class:

    @editable
    MyVehicleSpawner: vehicle_spawner_device = vehicle_spawner_device{}

But writing this line in vs code gives the error:

the editable attribute is not supported for classes that aren’t concrete

Is this not supported right now? For reference here is the base class definition:

vehicle_spawner_device<public> := class<abstract><epic_internal>(creative_device_base)

Thanks for the report! The error message is correct and your use case isn’t supported right now. But I understand this doesn’t seem ideal so I’ve reported the issue internally.

In the mean time, if you wanted to do something like build an abstract array of every vehicle_spawner_device in your map you should be able to use Gameplay Tags to tag your devices and search for them once the game has begun. If that’s at all helpful to you.

1 Like