Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
AsaApiModUtils Namespace Reference

Functions

FORCEINLINE AActorGetSingleton ()
 Returns the actor singleton, and loads the weak reference to the singleton actor.
 
FORCEINLINE void DrawDebugLine (FVector Start, FVector End, FLinearColor Color, int Duration)
 Draw a line in the world for all players to see.
 
FORCEINLINE TWeakObjectPtr< AActorDrawSphere (const DrawDebugSphere_Params &params)
 Draw a sphere in the world.
 
FORCEINLINE FString AddNotification (const AsaApiUtilsNotification &notificationParams)
 Add a notification to the player's screen or to the chat box.
 
FORCEINLINE APrimalBuff_ApiUtilsGetBuffForPlayer (AShooterCharacter *Character)
 This is a helper function to get the buff for the player.
 
FORCEINLINE APrimalBuff_ApiUtilsGetBuffForPlayer (AShooterPlayerController *PC)
 This is a helper function to get the buff for the player.
 
FORCEINLINE APrimalBuff_ApiUtilsGetBuffForPlayer (APlayerController *PC)
 This is a helper function to get the buff for the player.
 

Variables

TWeakObjectPtr< AActorSingleton
 

Function Documentation

◆ AddNotification()

FORCEINLINE FString AsaApiModUtils::AddNotification ( const AsaApiUtilsNotification & notificationParams)

Add a notification to the player's screen or to the chat box.

Parameters
TextThe text to display
RecipientEOSThe player IDs to display the notification to
BackgroundColorThe background color of the notification
TextColorThe text color of the notification
TextScaleThe scale of the text
DurationThe duration of the notification in seconds
TextJustificationThe justification of the text
ScreenPositionThe position of the notification on the screen
bAddToChatWhether or not to add the notification to the chat box
Returns
The notification ID

Definition at line 97 of file AsaApiModUtils.hpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DrawDebugLine()

FORCEINLINE void AsaApiModUtils::DrawDebugLine ( FVector Start,
FVector End,
FLinearColor Color,
int Duration )

Draw a line in the world for all players to see.

Parameters
StartThe start location of the line
EndThe end location of the line
ColorThe color of the line
DurationThe duration of the line in seconds

Definition at line 44 of file AsaApiModUtils.hpp.

+ Here is the call graph for this function:

◆ DrawSphere()

FORCEINLINE TWeakObjectPtr< AActor > AsaApiModUtils::DrawSphere ( const DrawDebugSphere_Params & params)

Draw a sphere in the world.

It will be drawn for all players if ForPlayerID is -1, and for all tribes if ForTribeID is -1, otherwise it will only be drawn for the specified player or tribe

Duration is in seconds, and set in Actor->SetLifeSpan(Duration)

Parameters
CenterThe center of the sphere
RadiusThe radius of the sphere
ForPlayerIDThe player ID to draw the sphere for, -1 for all players
ForTribeIDThe tribe ID to draw the sphere for, -1 for all tribes
ColorThe color of the sphere
DurationThe duration of the sphere in seconds
drawTypeThe type of sphere to draw
Returns
The sphere actor

Definition at line 71 of file AsaApiModUtils.hpp.

+ Here is the call graph for this function:

◆ GetBuffForPlayer() [1/3]

FORCEINLINE APrimalBuff_ApiUtils * AsaApiModUtils::GetBuffForPlayer ( APlayerController * PC)

This is a helper function to get the buff for the player.

Parameters
PCThe player controller to get the buff for
Returns
The buff for the player

Definition at line 147 of file AsaApiModUtils.hpp.

+ Here is the call graph for this function:

◆ GetBuffForPlayer() [2/3]

FORCEINLINE APrimalBuff_ApiUtils * AsaApiModUtils::GetBuffForPlayer ( AShooterCharacter * Character)

This is a helper function to get the buff for the player.

Parameters
CharacterThe character to get the buff for
Returns
The buff for the player

Definition at line 116 of file AsaApiModUtils.hpp.

◆ GetBuffForPlayer() [3/3]

FORCEINLINE APrimalBuff_ApiUtils * AsaApiModUtils::GetBuffForPlayer ( AShooterPlayerController * PC)

This is a helper function to get the buff for the player.

Parameters
PCThe player controller to get the buff for
Returns
The buff for the player

Definition at line 137 of file AsaApiModUtils.hpp.

+ Here is the caller graph for this function:

◆ GetSingleton()

FORCEINLINE AActor * AsaApiModUtils::GetSingleton ( )

Returns the actor singleton, and loads the weak reference to the singleton actor.

Returns
The actor singleton

Definition at line 14 of file AsaApiModUtils.hpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ Singleton

TWeakObjectPtr<AActor> AsaApiModUtils::Singleton

Definition at line 8 of file AsaApiModUtils.hpp.