SET_ENTITY_HEALTH
Sets the entity's health. healthAmount sets the health value to that, and sets the maximum health core value. Setting healthAmount to 0 will kill the entity. entityKilledBy parameter can also be 0
ENTITYBuild 1207
Signature
lua
SetEntityHealth(entity, 0, entityKilledBy)
-- returns voidParameters
| Name | Type | Description |
|---|---|---|
| Entity | — | |
| int | — | |
| Entity | — |
Usage
lua
SetEntityHealth(entity, 0, entityKilledBy)Generated from the native name, hash, and parameter list. Add a real example.
Details
- Hash
- Source
- VORPCORE/RDR3natives
Source: VORPCORE/RDR3natives
