Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:2.10

Description

Description:

Reports the damage state of an object HitPart name, identified by its config.cpp or reported by DamagedHitPart and HitPart.

Damage values are in the range of 0-1 (0 is undamaged, 1 is fully damaged).

Syntax

Syntax:object getHit part
Parameters:
  • object: Object - Object to check.
  • part: String - HitPart name.
Return Value:Number

Examples

Examples:
damageAmount = player getHit "hit_leftleg"

Additional Information

See also: setHit, getHitPoints
Multiplayer: 
Problems: 

Notes