OsGetHealth

From OpenSimulator

Revision as of 02:14, 24 August 2012 by TBGRenfold (Talk | contribs)

Jump to: navigation, search

Gets an avatars health by key and returns the value as a float.

Example usage:

    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