Arma Reforger Script API
|
Object that can be placed in ActionsManagerComponent to define a contextual collection of BaseUserActions. More...
Public Member Functions | |
proto external owned string | GetContextName () |
Returns the identifier of this context or string.Empty if none. | |
proto external owned string | GetName () |
Returns the name of this context or string.Empty if none, as defined in UI Info. | |
proto external int | GetActionsList (out notnull array< BaseUserAction > outActions) |
Fills the provided outActions array with user actions that belong to this context. | |
proto external int | GetActionsCount () |
Returns the amount of actions registered in this action context. | |
proto external bool | GetTransformationModel (out vector outMat[4]) |
Fills the provided vector array with the transformation matrix of this context in model (local) space. | |
proto external bool | GetTransformationWorld (out vector outMat[4]) |
Fills the provided vector array with the transformation matrix of this context in world (global) space. | |
proto external bool | IsOmnidirectional () |
Returns whether this context is accessible from all directions or not. | |
proto external float | GetRadius () |
proto external float | GetHeight () |
proto external bool | IsCapsule () |
proto external vector | GetOrigin () |
Returns the context position in world space. | |
proto external bool | ShouldCheckLineOfSight () |
Returns true if visibility depends on line-of-sight, false otherwise. | |
proto external bool | ShouldDisplayAtReferencePoint () |
Returns true if the actions ui display will be placed at the interaction reference point. | |
proto external float | GetVisibilityRange (float globalRange) |
Returns the highest visibility range from registered actions, if its higher than the 'globalRange' parameter, else return 'globalRange'. | |
proto external bool | IsInVisibilityAngle (vector position) |
Returns true if this context is in visibility angle for the provided position. | |
proto external UIInfo | GetUIInfo () |
Returns the UIInfo set for this context or null if none. | |
Object that can be placed in ActionsManagerComponent to define a contextual collection of BaseUserActions.
proto external int UserActionContext.GetActionsCount | ( | ) |
Returns the amount of actions registered in this action context.
proto external int UserActionContext.GetActionsList | ( | out notnull array< BaseUserAction > | outActions | ) |
Fills the provided outActions array with user actions that belong to this context.
Returns the number of output elements.
proto external owned string UserActionContext.GetContextName | ( | ) |
Returns the identifier of this context or string.Empty if none.
proto external float UserActionContext.GetHeight | ( | ) |
proto external owned string UserActionContext.GetName | ( | ) |
Returns the name of this context or string.Empty if none, as defined in UI Info.
proto external vector UserActionContext.GetOrigin | ( | ) |
Returns the context position in world space.
proto external float UserActionContext.GetRadius | ( | ) |
proto external bool UserActionContext.GetTransformationModel | ( | out vector | outMat[4] | ) |
Fills the provided vector array with the transformation matrix of this context in model (local) space.
Returns true if PointInfo is valid and matrix is output, false otherwise
proto external bool UserActionContext.GetTransformationWorld | ( | out vector | outMat[4] | ) |
Fills the provided vector array with the transformation matrix of this context in world (global) space.
Returns true if PointInfo is valid and matrix is output, false otherwise.
proto external UIInfo UserActionContext.GetUIInfo | ( | ) |
Returns the UIInfo set for this context or null if none.
proto external float UserActionContext.GetVisibilityRange | ( | float | globalRange | ) |
Returns the highest visibility range from registered actions, if its higher than the 'globalRange' parameter, else return 'globalRange'.
proto external bool UserActionContext.IsCapsule | ( | ) |
proto external bool UserActionContext.IsInVisibilityAngle | ( | vector | position | ) |
Returns true if this context is in visibility angle for the provided position.
Does not perform any distance checks!
position | Position in world space to check against. |
proto external bool UserActionContext.IsOmnidirectional | ( | ) |
Returns whether this context is accessible from all directions or not.
proto external bool UserActionContext.ShouldCheckLineOfSight | ( | ) |
Returns true if visibility depends on line-of-sight, false otherwise.
proto external bool UserActionContext.ShouldDisplayAtReferencePoint | ( | ) |
Returns true if the actions ui display will be placed at the interaction reference point.