Arma Reforger Script API
|
Base class for interaction handler. More...
Public Member Functions | |
proto external bool | IsInteractionAvailable () |
Returns true if any interaction can be done at given moment, i.e. UI should be shown. | |
proto external BaseUserAction | GetSelectedAction () |
Return currently selected user action or null if none. | |
proto external float | GetVisibilityRange () |
Returns the global actions visibility range value defined by attribute in this component. | |
void | OnInit (IEntity owner) |
Called on initialization. | |
void | OnFrame (IEntity owner, float timeSlice) |
Called every frame, only for local player controller. | |
void | OnAfterPostSimulate (IEntity owner, float timeSlice) |
Called after post simulate, only for local player controller. | |
Public Member Functions inherited from GameComponent | |
bool | OnTicksOnRemoteProxy () |
Base class for interaction handler.
This component must be attached to a PlayerController.
proto external BaseUserAction BaseInteractionHandlerComponent.GetSelectedAction | ( | ) |
Return currently selected user action or null if none.
proto external float BaseInteractionHandlerComponent.GetVisibilityRange | ( | ) |
Returns the global actions visibility range value defined by attribute in this component.
proto external bool BaseInteractionHandlerComponent.IsInteractionAvailable | ( | ) |
Returns true if any interaction can be done at given moment, i.e. UI should be shown.
void BaseInteractionHandlerComponent.OnAfterPostSimulate | ( | IEntity | owner, |
float | timeSlice | ||
) |
Called after post simulate, only for local player controller.
void BaseInteractionHandlerComponent.OnFrame | ( | IEntity | owner, |
float | timeSlice | ||
) |
Called every frame, only for local player controller.
void BaseInteractionHandlerComponent.OnInit | ( | IEntity | owner | ) |
Called on initialization.
Might not be called unless we already own this item.
Implemented in SCR_InteractionHandlerComponent.