Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006218opensim[REGION] Script Functionspublic2012-08-10 08:102018-09-27 05:09
ReporterSignpostMarv 
Assigned To 
PrioritylowSeverityfeatureReproducibilityN/A
Statuspatch includedResolutionopen 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0006218: [PATCH] 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;

default
{
    state_entry(){
        llSetObjectName(llGetKey());
        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
Viewer
Attached Filespatch file icon osRezDuplicate.patch [^] (4,394 bytes) 2012-08-10 08:21 [Show Content]

- Relationships

-  Notes
(0033096)
djphil (reporter)
2018-09-27 05:09

Hi, your new fonction don't have rez param ?
How we can set/get param on "on_rez(integer p) {...}" ?

- 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
2018-09-26 07:33 Fly-Man- Summary function to allow scripts to duplicate an object on behalf of the owner => [PATCH] function to allow scripts to duplicate an object on behalf of the owner
2018-09-27 05:09 djphil Note Added: 0033096


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker