GSC reference › Built-in
ServerObjective_GetObjectiveOrigin()
Built-in (engine)
Client
Returns the index of the objective or undefined if it does not exist
Signature
ServerObjective_GetObjectiveOrigin(<localClientNum>, <objectiveID>)
Parameters
| Name | Required? | Details |
|---|---|---|
| localClientNum | Required | The local client number |
| objectiveID | Required | The index of objective |
Example (from Treyarch's docs)
origin = ServerObjective_GetObjectiveOrigin( localClientNum, objective_num )
Real uses in BO3's scripts
Called 4 times in the decompiled scripts. A few, zombies first:
- scripts/zm/_zm_weap_ball.csc, line 112
goal.origin = serverobjective_getobjectiveorigin(localclientnum, goal.objectiveid); - scripts/mp/gametypes/ball.csc, line 96
goal.origin = serverobjective_getobjectiveorigin(localclientnum, goal.objectiveid); - scripts/mp/gametypes/ctf.csc, line 62
flag.origin = serverobjective_getobjectiveorigin(localclientnum, flag.objectiveid); - scripts/mp/gametypes/dom.csc, line 70
flag.origin = serverobjective_getobjectiveorigin(localclientnum, flag_objective);
Related built-ins
- ServerObjective_GetObjective()Returns the index of the objective or undefined if it does not exist
- ServerObjective_GetObjectiveEntity()Returns the entity of the objective
- ServerObjective_GetObjectiveTeam()Returns the origin of the objective
- GetEquipmentHeadObjective()Returns the equipment head objective as described in the grenadeweapon gdt.
- GetCrateHeadObjective()Returns the equipment head objective as described in the grenadeweapon gdt.
- Objective_GetGamemodeFlags()Gets the gamemode flags for the objective.
- ServerObjective_GetObjectiveProgress()Returns the origin of the objective
- ServerObjective_GetObjectiveGameModeFlags()Returns the origin of the objective
- GetTagOrigin()Gets the origin of the tag
- Objective_Add()Add a new objective, with ability to specify all the info for the objective
- GetOrigin()Get the origin of the entity
- Objective_State()Set a state for the objective
New to GSC?
Start with the basics, or paste a compile error to get the fix.
Built-in descriptions, parameters and examples come from Treyarch's BO3 mod tools docs. Usage links point at shiversoftdev/t7-source (decompiled BO3 scripts).