aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules/World/NPC/Tests/NPCModuleTests.cs
diff options
context:
space:
mode:
authorTBG Renfold2012-08-09 18:03:26 +0100
committerJustin Clark-Casey (justincc)2012-08-24 00:13:14 +0100
commit4f3fabae5bec8a71f9953ef9f4c247e086e4757f (patch)
treee274526ce8e1653175f8da04000d8b07f10507b3 /OpenSim/Region/OptionalModules/World/NPC/Tests/NPCModuleTests.cs
parentIf a script state save fails for some reason on shutdown/region removal, get ... (diff)
downloadopensim-SC_OLD-4f3fabae5bec8a71f9953ef9f4c247e086e4757f.zip
opensim-SC_OLD-4f3fabae5bec8a71f9953ef9f4c247e086e4757f.tar.gz
opensim-SC_OLD-4f3fabae5bec8a71f9953ef9f4c247e086e4757f.tar.bz2
opensim-SC_OLD-4f3fabae5bec8a71f9953ef9f4c247e086e4757f.tar.xz
Adds osGetHealth.
Returns the amount of health (in an integer) that an avatar has left in the scene. If an avatar is not found or safe is enabled on a region, -1 is returned. Example usage: default { touch_end(integer _t) { key agentID = llDetectedKey(0); osCauseDamage(agentID, 50); llSay(0, llKey2Name(agentID) + " has " + (string)osGetHealth(agentID) + "% health left."); } }
Diffstat (limited to 'OpenSim/Region/OptionalModules/World/NPC/Tests/NPCModuleTests.cs')
0 files changed, 0 insertions, 0 deletions