1
0
2025-05-28 21:48:33 -04:00

17 lines
404 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

### Function: SetHP(Spawn, CurrentHP)
**Description:** Sets the Spawn's Current HP, if the CurrentHP value is higher than the Spawn's Total HP it will override the Total HP as well.
**Parameters:**
`Spawn`: Spawn The Spawn whoms HP should be changed.
`CurrentHP`: SInt32 - New HP value for the spawn.
**Returns:** None.
**Example:**
```lua
-- Example set Spawn HP to 1000
SetHP(Spawn, 1000)
```