Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006218opensim[REGION] Script Functionspublic2012-08-10 08:102018-07-20 15:49
Assigned To 
Statuspatch includedResolutionopen 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0006218: function to allow scripts to duplicate an object on behalf of the owner
DescriptionSomething I just cooked up for a scenario at work, needed to have a script duplicate an object as if I'd shift-cloned it myself. Potential use-case for other users would be using the NPC module to produce a tutorial on "how to build in opensim", or life simulation without having to have a central object that stores everything to be rezzed.
Additional Informationfloat PHI;
integer n;

        PHI = ((1 + llSqrt(5)) / 2.0);
    touch_start(integer t){
        vector scale = llGetScale();
        osRezDuplicate(<0,0,++n * (scale.z * 0.5)>, llGetRot() * llEuler2Rot(<0,0,(TWO_PI * (1 / (n * PHI))) % TWO_PI>));
    object_rez(key i){
        llOwnerSay("rezzed: " + i);

    on_rez(integer p){
        llOwnerSay("I was rezzed");
TagsNo tags attached.
Git Revision or version number19417fca41e
Run ModeStandalone (1 Region)
Physics EngineBulletSim
Environment.NET / Windows32
Mono VersionNone
Attached Filespatch file icon osRezDuplicate.patch [^] (4,394 bytes) 2012-08-10 08:21 [Show Content]

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2012-08-18 04:32 DMX04 New Issue
2012-08-18 04:32 DMX04 Issue generated from: 0006146

Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker