Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008693opensim[REGION] Script Functionspublic2020-04-27 00:492020-04-27 00:49
ReporterData Rossini 
Assigned To 
PrioritynormalSeverityfeatureReproducibilityalways
StatusnewResolutionopen 
PlatformLinuxOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0008693: Extension by event changed with "CHANGED_LAND"
DescriptionWish 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
...
--------------------------------
Additional InformationEnvironment:
-OpenSuSE 15.1 with mono 5.10
-OpenSim version 0.9.2.0 Yeti Dev
TagsNo tags attached.
Git Revision or version number
Run Mode Grid (Multiple Regions per Sim)
Physics EngineBulletSim
Script EngineXEngine
EnvironmentMono / Linux64
Mono Version5.x
ViewerFirestorm
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2020-04-27 00:49 Data Rossini New Issue


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker