AthenaShared.interfaces.job.Objective ​
shared/interfaces/job.Objective
Used to pass objective information from server to client.
Interface
Objective
Properties ​
animation ​
• Optional
animation: JobAnimation
An animation to associate with this objective.
Defined in ​
attachable ​
• Optional
attachable: JobAttachable
An object to associate with this objective.
Defined in ​
blip ​
• Optional
blip: Blip
A local blip to associate with this objective.
Defined in ​
callbackOnCheck ​
• Optional
callbackOnCheck: (player
: any
) => Promise
<boolean
>
Type declaration ​
Usage
AthenaShared.interfaces.job.Objective.(player
): Promise
<boolean
>
Parameters ​
Name | Type |
---|---|
player | any |
Returns ​
Promise
<boolean
>
Defined in ​
callbackOnFinish ​
• Optional
callbackOnFinish: (player
: any
) => void
Type declaration ​
Usage
AthenaShared.interfaces.job.Objective.(player
): void
Server-side callback when objective is completed.
Parameters ​
Name | Type |
---|---|
player | any |
Returns ​
void
Defined in ​
callbackOnStart ​
• Optional
callbackOnStart: (player
: any
) => void
Type declaration ​
Usage
AthenaShared.interfaces.job.Objective.(player
): void
Server-side callback when objective is started.
Parameters ​
Name | Type |
---|---|
player | any |
Returns ​
void
Defined in ​
captureMaximum ​
• Optional
captureMaximum: number
An optional internal tracker for how much progress needs to be done to complete it.
Defined in ​
captureProgress ​
• Optional
captureProgress: number
An optional internal tracker for how far this objective is along.
Defined in ​
criteria ​
• criteria: ObjectiveCriteria
The criteria necessary to complete this Objective.
Defined in ​
data ​
• Optional
data: Object
Data to put on this objective. Do not add callbacks.
Index signature ​
â–ª [key: string
]: any
Defined in ​
description ​
• description: string
A description of what to do to complete this objective.
Defined in ​
eventCall ​
• Optional
eventCall: EventCall
An event that can be triggered when the objective is started, completed, etc. Useful for adding custom functionality to an objective.
Defined in ​
marker ​
• Optional
marker: Marker
A local marker to associate with this objective.
Defined in ​
nextCaptureTime ​
• Optional
nextCaptureTime: number
The time between captures. This should be left alone.
Defined in ​
onlyCallbackCheck ​
• Optional
onlyCallbackCheck: boolean
Turns off all other objective checks, and only does the callbackOnCheck
callback provided.
Defined in ​
particle ​
• Optional
particle: Particle
Particles to show in the area of the objective. Useful to add some 'flavor' to your objective.
Defined in ​
pos ​
• pos: IVector3
The 3D Position of this objective.
Defined in ​
range ​
• range: number
The range which this objective can be completed in. Usually set to around 2.
Defined in ​
textLabel ​
• Optional
textLabel: TextLabel
A local text label to associate with this objective.
Defined in ​
type ​
• type: ObjectiveType
An objective type that is unique to this objective.
Defined in ​
uid ​
• Optional
uid: string
A unique identifier that can be assigned to an objective to help identify it easily.