Skip to content

Commit

Permalink
Cleanup wording
Browse files Browse the repository at this point in the history
  • Loading branch information
AvarianKnight authored Aug 9, 2024
1 parent 732b2d8 commit f0224de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions ENTITY/SetEntityHealth.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@ ns: ENTITY
void SET_ENTITY_HEALTH(Entity entity, int health);
```
When setting health for player ped entity types, the game clamps the health value to ensure it does not exceed the entity's maximum health. This maximum health can be retrieved by calling [`GET_PED_MAX_HEALTH`](#_0x4700A416E8324EF3). It can also be modified by calling [`SET_PED_MAX_HEALTH`](#_0xF5F6378C4F3419D3).
When setting health for a player ped, the game will clamp the health value to ensure it does not exceed the maximum health. This maximum health can be retrieved by calling [`GET_PED_MAX_HEALTH`](#_0x4700A416E8324EF3). It can also be modified by calling [`SET_PED_MAX_HEALTH`](#_0xF5F6378C4F3419D3).
When setting health for non-player peds, the maximum health will be increased if the new health value exceeds the current maximum, ensuring that the changes take effect.
When setting the health for non-player peds or entities, the maximum health will be increased if the new health value exceeds the current maximum.
Default health value for male peds is `200`, for female peds it is `175`.
Default health for male peds is `200`, for female peds it is `175`.
Applying this on other entities that are not players or peds won't clamp the value.
### Added parameters
* **inflictor**: The handle for the entity that caused the damage.
Expand Down
2 changes: 1 addition & 1 deletion PED/IsPedInjured.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ The default threshold is 100, these are stored in the `pedhealth.meta` file loca
* **ped**: The ped to check for injuries.
## Return value
A boolean representing whether the passed ped is injured or not.
Returns `true` if the ped is injured, `false` otherwise.

0 comments on commit f0224de

Please sign in to comment.