OsGetHealth

From OpenSimulator

Revision as of 12:37, 8 March 2013 by TBGRenfold (Talk | contribs)

Jump to: navigation, search
float osGetHealth(string avatar)
Gets an avatars health by key and returns the value as a float.

See also OsCauseDamage, OsCauseHealing.

Threat Level None
Permissions No permissions specified
Extra Delay No function delay specified
Example(s)
default
{
    touch(integer t)
    {
        key agentID = llDetectedKey(0);
        osCauseDamage(agentID, 50);
        llSay(0, llKey2Name(agentID) + " has " + (string)osGetHealth(agentID) + "% health left.");
    }
}
Personal tools
General
About This Wiki