Syntax: Select all
@OnEntitySpawned
def on_entity_spawned(base_entity):
classname = base_entity.classname
entity = Entity(base_entity.index)
entity.solid_flags &= ~SolidFlags.NOT_SOLID
But I get the following error:
Code: Select all
File "../addons/source-python/plugins/aea/region_phase.py", line 666, in on_entity_spawned
entity.solid_flags &= ~SolidFlags.NOT_SOLID
File "../addons/source-python/packages/source-python/entities/_base.py", line 125, in __setattr__
object.__setattr__(self, attr, value)
Boost.Python.ArgumentError: Python argument types in
None.None(Entity, int)
did not match C++ signature:
None(CBaseEntityWrapper {lvalue}, SolidFlags_t)