class UAInterface
Methods 18
Get action state
action- id of action, defined in \ref 4_World/Classes/UserActionsComponent/_constants.c
check_focus- if true and game is unfocused, returns 0; otherwise returns actual value
Returns: actual action state as float, for regular two state buttons returns 0 or 1, for analog buttons/axes returns value in interval <0, 1> with consideration of defined deadzones
See also: SyncedValue()
Returns true just in frame, when action was invoked (button was pressed)
action- id of action, defined in \ref 4_World/Classes/UserActionsComponent/_constants.c
check_focus- if true and game is unfocused, returns 0; otherwise returns actual value
Returns: true if action was invoked in that frame, false otherwise
See also: SyncedPress()
Returns true just in frame, when release action happened (button was released)
action- id of action, defined in \ref 4_World/Classes/UserActionsComponent/_constants.c
check_focus- if true and game is unfocused, returns 0; otherwise returns actual value
Returns: true if action was released in that frame, false otherwise
See also: SyncedRelease()
Returns true just in frame, when hold action invoked (button is hold)
action- id of action, defined in \ref 4_World/Classes/UserActionsComponent/_constants.c
check_focus- if true and game is unfocused, returns 0; otherwise returns actual value
Returns: true if action was released in that frame, false otherwise
See also: SyncedHold()
Returns true just in frame, when double click action invoked (button double clicked)
action- id of action, defined in \ref 4_World/Classes/UserActionsComponent/_constants.c
check_focus- if true and game is unfocused, returns 0; otherwise returns actual value
Returns: true if action was released in that frame, false otherwise
See also: SyncedDbl()
Returns true just in frame, when single click action invoked (button pressed and released before hold timer)
action- id of action, defined in \ref 4_World/Classes/UserActionsComponent/_constants.c
check_focus- if true and game is unfocused, returns 0; otherwise returns actual value
Returns: true if action was released in that frame, false otherwise
See also: SyncedClick()
proto native bool SyncedOverride_ID(int action, float value, OverrideInputType type, bool oneTime)INPUT_OVERRIDEReturns true when the override happened succesfully
action- id of action, defined in \ref 4_World/Classes/UserActionsComponent/_constants.c
value- of the parameter that should be overwritten (0 for false, anything else for true)
Returns: true if action value was overwritten
proto native bool SyncedOverride(string action, float value, OverrideInputType type, bool oneTime)INPUT_OVERRIDEproto native bool SyncedRemoveOverride_ID(int action)INPUT_OVERRIDEReturns true when the override was removed succesfully
action- id of action, defined in \ref 4_World/Classes/UserActionsComponent/_constants.c
Returns: true if the action override was removed
proto native bool SyncedRemoveOverride(string action)INPUT_OVERRIDEproto native bool SyncedRemoveAllOverrides()INPUT_OVERRIDEproto bool SyncedGetInputOverride(int action, OverrideInputType type, bool countUsage, out float value)INPUT_OVERRIDEReturns true when the override exists and returns the value through value
action- id of action, defined in \ref 4_World/Classes/UserActionsComponent/_constants.c
type- the type of input the override should use
countUsage- whether this call should remove the overwrite when oneTime is true
value- returns the value of the override if it exists
Returns: true if the action override exists