GSC reference › Built-in
ClearDamageIndicator()
Built-in (engine)
Server
Player Called on: client
Clear damage indicator
Signature
<client> ClearDamageIndicator()
Called on an entity: client ClearDamageIndicator(...)
Example (from Treyarch's docs)
self ClearDamageIndicator()
Real uses in BO3's scripts
Called 4 times in the decompiled scripts. A few, zombies first:
- scripts/cp/cp_doa_bo3_player_challenge.gsc, line 804
player cleardamageindicator(); - scripts/cp/doa/_doa_player_utility.gsc, line 207
self cleardamageindicator(); - scripts/cp/doa/_doa_player_utility.gsc, line 2239
self cleardamageindicator(); - scripts/cp/doa/_doa_player_utility.gsc, line 2305
self cleardamageindicator();
Related built-ins
- AddToDamageIndicator()Add damage to damage indicator
- NewDamageIndicatorHudElem()Create a new hud element for a particular client
- SetDamageDirectionIndicator()Use the armor version of the hit indicator
- DamageRiotShield()Apply damage to a player riot shield or other weapon that supports damage states.
- FinishPlayerDamage()Does damage to a player - usually as part of the damage callback
- FakeDamageFrom()Make the player take damage from the given direction
- SetVehicleDamageMeter()Sets the vehicle damage meter
- DoDamage()Does damage to this entity
- SetCanDamage()Set the candamage flag for this entity - this means that it can respond to notifies from bullets and grenade hits
- RadiusDamage()
- DamageConeTrace()Determines how much the entity can be seen from the given position.
- FinishVehicleDamage()Does damage to an vehicle - usually as part of the damage callback
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).