Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
BaseUserAction.c
Go to the documentation of this file.
1/*
2===========================================
3Do not modify, this script is generated
4===========================================
5*/
6
11
13{
14 // Injects
17 protected string m_sCannotPerformReason;
18
25
29 {
31 }
32
35
37 proto external int GetContextIndex(string sContextName);
39 proto external void SetActiveContext(UserActionContext context);
43 proto external bool CanBePerformed(IEntity user);
45 proto external bool CanBeShown(IEntity user);
47 proto external bool HasLocalEffectOnly();
49 proto external bool CanBroadcast();
56 proto external bool CheckOnServerFirst();
58 proto external bool ShouldPerformPerFrame();
61 proto external string GetActionName();
64 proto external string GetActionDescription();
66 proto external float GetVisibilityRange();
68 proto external float GetActionDuration();
70 proto external float GetActionProgress(float fProgress, float timeSlice);
72 proto external bool IsInProgress();
74 proto external UIInfo GetUIInfo();
76 proto external IEntity GetOwner();
78 proto external bool CanAggregate();
80 proto external int GetActionID();
82 proto external void SetSendActionDataFlag();
85 proto external void SetActionEnabled_S(bool enable);
87 proto external bool WasDisabledByServer();
88
89 // callbacks
90
91 event protected bool OnRplSave(ScriptBitWriter writer) { return true; };
92 event protected bool OnRplLoad(ScriptBitReader reader) { return true; };
96 event protected bool OnSaveActionData(ScriptBitWriter writer) { return true; };
100 event protected bool OnLoadActionData(ScriptBitReader reader) { return true; };
104 event protected event void OnActionSelected();
108 event protected event void OnActionDeselected();
109}
110
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.
Definition UIInfo.c:14