Arma Reforger Script API
|
Public Member Functions | |
override void | EOnStateChanged (EEditableEntityState states, EEditableEntityState changedState, bool toSet) |
Event called every time state of editable entity changes. | |
override void | OnPostInit (IEntity owner) |
Public Member Functions inherited from SCR_EditableEntityBaseChildComponent | |
void | EOnStateChanged (EEditableEntityState states, EEditableEntityState changedState, bool toSet) |
Event called every time state of editable entity changes. | |
void | UpdateFromCurrentState () |
Update based on current state of editable entity. | |
bool | CanApply (EEditableEntityState changedState) |
Check if effects controlled y this component can be applied when given state changes. | |
void | SCR_EditableEntityBaseChildComponent (IEntityComponentSource src, IEntity ent, IEntity parent) |
Protected Member Functions | |
void | SetMaterial (ResourceName material) |
Additional Inherited Members | |
Protected Attributes inherited from SCR_EditableEntityBaseChildComponent | |
EEditableEntityState | m_State |
GenericEntity | m_Owner |
Change material based on specific states
override void SCR_EditableEntityMaterialChildComponent.EOnStateChanged | ( | EEditableEntityState | states, |
EEditableEntityState | changedState, | ||
bool | toSet | ||
) |
Event called every time state of editable entity changes.
[in] | states | currently active states |
[in] | changedState | changed state |
[in] | toSet | true if the state was enabled, false if it was disabled |
Implements SCR_EditableEntityBaseChildComponent.
override void SCR_EditableEntityMaterialChildComponent.OnPostInit | ( | IEntity | owner | ) |
|
protected |