OsGetHealth

From OpenSimulator

Revision as of 03:13, 24 August 2012 by TBGRenfold (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Gets an avatars health by key.

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