PlayerHealth

From Eternity Wiki
Revision as of 15:11, 1 November 2021 by Printz (talk | contribs) (Created page with "{{ACSFunction|description=Returns the health (hit points) of the activator. |usage=int PlayerHealth(void) |return=the health of the activator |notes=Despite the name, this fun...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Description[edit]

This is an ACS built-in function.

Returns the health (hit points) of the activator.

Usage[edit]

int PlayerHealth(void)

Parameters[edit]

No parameters.

Return value[edit]

the health of the activator

Examples[edit]

No examples given.

Notes[edit]

Despite the name, this function doesn't apply only for players. It will return the health of any thing, including monsters, who activate the script.

This function's identification in zspecial.acs is: ACS internal.

See also[edit]