GSC reference › Built-in
Objective_ClearPlayerUsing()
Built-in (engine)
Server
Sets the objective to be not being used by the specified player.
Signature
Objective_ClearPlayerUsing(<objective_number>, <player>)
Parameters
| Name | Required? | Details |
|---|---|---|
| objective_number | Required | The ID of the objective to alter |
| player | Required | The player who is no longer using the objective |
Real uses in BO3's scripts
Called 6 times in the decompiled scripts. A few, zombies first:
- scripts/zm/zm_tomb_capture_zones.gsc, line 2574
objective_clearplayerusing(self.n_objective_index, player); - scripts/zm/zm_tomb_capture_zones.gsc, line 2906
objective_clearplayerusing(self.n_objective_index, player); - scripts/shared/gameobjects_shared.gsc, line 1237
objective_clearplayerusing(self.objectiveid, self.carrier); - scripts/shared/gameobjects_shared.gsc, line 2404
objective_clearplayerusing(object.objectiveid, self); - scripts/mp/gametypes/clean.gsc, line 1227
objective_clearplayerusing(self.objectiveid, player);
Related built-ins
- Objective_SetPlayerUsing()Sets the objective to being used by the specified player.
- ClearPlayerGravity()Clears the gravity override for the player.
- ClearPlayerCorpses()Removes all player corpses from the level
- Objective_ClearAllUsing()Clears the objective of all players using status.
- IsPlayer()Checks whether this entity is the player
- GetPlayers()Returns an array of the currently connected players.
- GetLocalPlayer()Get the local player predicted centity.
- PlaySoundToPlayer()Play the sound alias as if coming from the entity, so that only one player can hear it
- GetPlayerAngles()Get the player view angles
- ClearAnim()Sets an animation's goal weight (and the goal weights of all of its descendents) to zero over the specified time.
- GetLocalPlayers()Get an array of all the local players
- SetInvisibleToPlayer()Make the entity invisible to the player
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).