Skip to content
On this page

Athena.systems.job.triggers

Functions

override

Usage

Athena.systems.job.triggers.override(functionName, callback): any

Used to override job objective trigger functionality

Parameters

NameType
functionName"tryEventCall"
callback(player: Player, objective: Objective) => any

Returns

any

Defined in

server/systems/job/triggers.ts:110

Usage

Athena.systems.job.triggers.override(functionName, callback): any

Used to override job objective trigger functionality

Parameters

NameType
functionName"tryAnimation"
callback(player: Player, objective: Objective) => any

Returns

any

Defined in

server/systems/job/triggers.ts:111

Usage

Athena.systems.job.triggers.override(functionName, callback): any

Used to override job objective trigger functionality

Parameters

NameType
functionName"tryAttach"
callback(player: Player, objective: Objective) => any

Returns

any

Defined in

server/systems/job/triggers.ts:112


tryAnimation

Usage

Athena.systems.job.triggers.tryAnimation(player, objective): any

Try playing an animation from the objective.

This should almost never be invoked manually.

Parameters

NameTypeDescription
playerPlayerAn alt:V Player Entity
objectiveObjective

Returns

any

Defined in

server/systems/job/triggers.ts:41


tryAttach

Usage

Athena.systems.job.triggers.tryAttach(player, objective): any

Try attaching an object to a player.

This should almost never be invoked manually.

Parameters

NameTypeDescription
playerPlayerAn alt:V Player Entity
objectiveObjective

Returns

any

Defined in

server/systems/job/triggers.ts:82


tryEventCall

Usage

Athena.systems.job.triggers.tryEventCall(player, objective): any

Calls any events attached to the current job objective that is being finished.

Try calling an event. This should almost never be invoked manually.

Parameters

NameTypeDescription
playerPlayerAn alt:V Player Entity
objectiveObjective

Returns

any

Defined in

server/systems/job/triggers.ts:15

Created by Stuyk | Est. 2020