class GenericEntityCOMPONENT_SYSTEMSource
GenericEntity › IEntity › Managed
All members, including inherited
Methods 6
proto native void Show(bool show)COMPONENT_SYSTEMproto native GenericComponent FindComponent(typename typeName)COMPONENT_SYSTEMFinds first occurance of the coresponding component.
typeName- type of the component
proto native void InsertComponent(GenericComponent component)COMPONENT_SYSTEMinserts instance of the script component to the entity. Calls OnComponentInsert on all entity's components to inform that this new component was inserted. The new instance have to FindScriptComponents in order to work with them. Calls EOnInit on the component if component sets EV_INIT mask. Calls EOnActivate on the component if the component is active (default)
component- instance
proto native void RemoveComponent(GenericComponent component)COMPONENT_SYSTEMRemoves component from entity. Doesn't delete the entity. Calls EOnDeactivate on the component. Calls OnComponentRemove on all entity's components to inform that this new component was removed.
component- instance
proto native void DeleteComponent(GenericComponent component)COMPONENT_SYSTEMRemoves and deletes component from entity. Calls EOnDeactivate on the component. Calls OnComponentRemove on all entity's components to inform that this new component was removed. Calls OnDelete on the component.
component- instance
Called after updating world in Workbench. The entity must be selected.