OsSetHealth
From OpenSimulator
osSetHealth(key avatar, float health)
| |
| Sets an avatars health by key to the specified float value. | |
| Threat Level | High |
| Permissions | ${OSSL|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER |
| Extra Delay | 0 seconds |
| Example(s) | |
// // osSetHealth Script Example // Author: djphil // default { state_entry() { llSay(PUBLIC_CHANNEL, "Touch to see osSetHealth usage."); } touch(integer number) { key agentID = llDetectedKey(0); osSetHealth(agentID, 50.0); llSay(PUBLIC_CHANNEL, llKey2Name(agentID) + " has " + (string)osGetHealth(agentID) + "% health left."); } } | |
| Notes | |
| This function was added in 0.9.0.1 | |
See Also
- osGetHealth
- osSetHealth
- osGetHealRate
- osSetHealRate
- OsCauseDamage
- OsCauseHealing