OsGetLastChangedEventKey

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
 
(3 intermediate revisions by 2 users not shown)
Line 27: Line 27:
 
</source>
 
</source>
 
|description=Returns id(key) parameter of some changed events. Currently only works with CHANGED_ALLOWED_DROP, being the id of the dropped item. Returns empty key ("") if none found.
 
|description=Returns id(key) parameter of some changed events. Currently only works with CHANGED_ALLOWED_DROP, being the id of the dropped item. Returns empty key ("") if none found.
|additional_info=This function was added in 0.9.1.0 Dev
+
|additional_info=This function was added in 0.9.1.0, February, 22 2019
Implemented February, 22 2019 in GIT# bd27573130d4a40d678c81c687591708ab4e4f34
+
 
}}
 
}}

Latest revision as of 06:24, 7 November 2019

key osGetLastChangedEventKey()
Returns id(key) parameter of some changed events. Currently only works with CHANGED_ALLOWED_DROP, being the id of the dropped item. Returns empty key ("") if none found.
Threat Level This function does not do a threat level check
Permissions Use of this function is always allowed by default
Delay 0 seconds
Example(s)
default
{
 
...
    changed(integer ch)
    {
        if (ch & CHANGED_ALLOWED_DROP)
        {
            key id = osGetLastChangedEventKey();
            if(id != "")
            {
                llSay(0,"got inventory dropped item "+(string)id);
                llSay(0,"name " + osGetInventoryName(id));
                llSay(0,"desc " + osGetInventoryDesc(id));
                key who = osGetInventoryLastOwner(id);
                llSay(0,"dropped by " + llKey2Name(who) +" ("+(string)who +")"); 
            }
        }
...
}
Notes
This function was added in 0.9.1.0, February, 22 2019


Personal tools
General
About This Wiki