MantisBT - opensim
View Issue Details
0008693opensim[REGION] Script Functionspublic2020-04-27 00:492020-04-27 00:49
Data Rossini 
 
normalfeaturealways
newopen 
Linux
 
 
Grid (Multiple Regions per Sim)
BulletSim
XEngine
Mono / Linux64
5.x
Firestorm
0008693: Extension by event changed with "CHANGED_LAND"
Wish for new feature: Extension with change event "CHANGED_LAND"
That would be useful for roleplay. LSL-scripts of attachments can be set depending on which land the avatar is on.
For example to deactivate weapons, when leaving roleplay land.

Otherwise, I have also noticed that the change event may spam and maybe cause lag because it is triggered every time the avatar changes position. The event returns the value "16384".
But, maybe this is necessary internally in OpenSim, because
I don't have enough knowledge about OpenSim programming.

Thank You!
-Sorry my bad english speaking -
--------------------------------
changed event example in LSL script:
...
    changed(integer change) {
        if (DEBUG) llOwnerSay("DEBUG: changed: " + (string)change);
        if (rpl_group != (key)llGetParcelDetails(llGetPos(), [PARCEL_DETAILS_GROUP])) llOwnerSay("No roleplay land!");
        if(change & CHANGED_OWNER) { // did the object change owner through a give or drop/take?
            integer perms = llGetPermissions(); // what permissions does object have?
            if ( perms & PERMISSION_TRIGGER_ANIMATION ) { // if object has permission to change animations
                llStopAnimation(ANIM_HOLD); // stop the 'hold a weapon' animation'
            }
            llResetScript(); // and reset the entire script
        }
    }
...
--------------------------------


Chatwindow:
--------------------------------
...
[00:12:10] Ord Mantell GLX Blaster: DEBUG: changed: 16384
[00:12:38] Ord Mantell GLX Blaster: DEBUG: changed: 16384
[00:12:38] Ord Mantell GLX Blaster: DEBUG: changed: 16384
[00:12:40] Ord Mantell GLX Blaster: DEBUG: changed: 16384
[00:12:41] Ord Mantell GLX Blaster: DEBUG: changed: 16384
[00:12:41] Ord Mantell GLX Blaster: DEBUG: changed: 16384
[00:12:41] Ord Mantell GLX Blaster: DEBUG: changed: 16384
[00:12:42] Ord Mantell GLX Blaster: DEBUG: changed: 16384
[00:12:42] Ord Mantell GLX Blaster: DEBUG: changed: 16384
[00:12:42] Ord Mantell GLX Blaster: No roleplay land!
[00:12:42] Ord Mantell GLX Blaster: DEBUG: changed: 16384
[00:12:42] Ord Mantell GLX Blaster: No roleplay land!
[00:12:43] Ord Mantell GLX Blaster: DEBUG: changed: 16384
...
--------------------------------
Environment:
-OpenSuSE 15.1 with mono 5.10
-OpenSim version 0.9.2.0 Yeti Dev
No tags attached.
Issue History
2020-04-27 00:49Data RossiniNew Issue

There are no notes attached to this issue.