91 event protected bool OnRplSave(ScriptBitWriter writer) {
return true; };
proto external ActionsManagerComponent GetActionsManager()
proto external bool HasLocalEffectOnly()
Does this action only have client side effect?
event void OnActionDeselected()
proto external bool ShouldPerformPerFrame()
Should this action be performed every frame the input action is triggered?
proto external void SetActionEnabled_S(bool enable)
Action can be enabled/disabled by the server. Disabled actions return false for CanBeShown()....
proto external int GetActionID()
Returns the ID with which this action is registered in its parent ActionsManagerComponent.
proto external void SetActiveContext(UserActionContext context)
Setter for m_pActiveContext.
void SetCannotPerformReason(string reason)
proto external bool CanBeShown(IEntity user)
Can this action be shown in the UI for the user?
proto external bool IsInProgress()
Returns true while continuous or timed action is being used.
proto external bool CheckOnServerFirst()
proto external void SetSendActionDataFlag()
Used to ask to send action data again during continuous action.
proto external UserActionContext GetActiveContext()
Getter for m_pActiveContext.
proto external float GetActionDuration()
Returns the duration of this action in seconds.
proto external float GetVisibilityRange()
Returns the visibility range of this action in metres.
bool OnLoadActionData(ScriptBitReader reader)
proto external string GetActionName()
proto external IEntity GetOwner()
Returns the parent entity of this action.
bool OnRplLoad(ScriptBitReader reader)
proto external int GetContextIndex(string sContextName)
Returns the index of the context this action is registered in as or -1 if none.
proto external string GetActionDescription()
proto external bool CanBePerformed(IEntity user)
Can this action be performed by the user?
proto external float GetActionProgress(float fProgress, float timeSlice)
Returns the progress of this action in seconds.
bool OnRplSave(ScriptBitWriter writer)
event void OnActionSelected()
proto external bool WasDisabledByServer()
Was the action disabled by the server?
bool OnSaveActionData(ScriptBitWriter writer)
proto external bool CanBroadcast()
If HasLocalEffectOnly() is false this method tells if the server is supposed to broadcast this action...
string GetCannotPerformReason()
proto external UIInfo GetUIInfo()
Returns the UIInfo set for this user action or null if none.
string m_sCannotPerformReason
proto external bool CanAggregate()
Whether action can be aggregated by name, this is a temp workaround for localization.
string ActionNameParams[9]
Can be filled in scripts to be used as params when name is being formatted when displayed in UI.
UIInfo - allows to define UI elements.