Skip to content

Interface: IXR_actor_stats

Actor statistics helpers exposed through the actor_stats namespace.

Methods

add_points()

ts
add_points(
   this: void, 
   section: string, 
   detail_key: string, 
   count: number, 
   points: number): void;

Add actor statistic points with count and score.

Parameters

ParameterTypeDescription
thisvoid-
sectionstringStatistic section id.
detail_keystringDetail key inside the section.
countnumberCount to add.
pointsnumberPoints to add.

Returns

void


add_points_str()

ts
add_points_str(
   this: void, 
   section: string, 
   detail_key: string, 
   value: string): void;

Add actor statistic points with a string value.

Parameters

ParameterTypeDescription
thisvoid-
sectionstringStatistic section id.
detail_keystringDetail key inside the section.
valuestringString value to add.

Returns

void


get_points()

ts
get_points(this: void, section: string): number;

Get total actor points for a statistic section.

Parameters

ParameterTypeDescription
thisvoid-
sectionstringStatistic section id.

Returns

number

Section points.


remove_from_ranking()

ts
remove_from_ranking(this: void, object_id: number): Nullable<void>;

Remove an object from actor ranking when this optional binding exists.

Parameters

ParameterTypeDescription
thisvoid-
object_idnumberObject id to remove.

Returns

Nullable<void>