GetMyHealth: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

6 September 2024

  • curprev 04:3904:39, 6 September 2024Habi talk contribs 872 bytes +872 Created page with "{{Welcome| desc=This function returns the current health of the npc as an integer.| params=<syntaxhighlight lang="lua"> ()</syntaxhighlight> <poem>::NoParams</poem>| example= <poem> Possible implementation: The following npc uses a timer and send chat 'i need medic' when it's health goes down to 25. </poem> <source lang="lua"> timerid<-null; function OnNPCSpawn() { if(!timerid) //precaution for double timers { SetTimer("CheckHealth",10000,1); } } function Check..."