OsParcelSubdivide

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{| width="100%" style="border: thin solid black"
+
{{osslfunc
| colspan="2" align="center" style=background:orange | '''{{SUBPAGENAME}}'''
+
|threat_level=High
|- valign="top"
+
|permissions=ESTATE_MANAGER,ESTATE_OWNER
|'''Threat Level''' || High
+
|delay=0
 +
|additional_info=This function was added in 0.7
 +
|function_syntax= osParcelSubdivide(vector pos1, vector pos2)
 +
|ossl_example=<source lang = "lsl">
 +
// ----------------------------------------------------------------
 +
// Example / Sample Script to show function use.
 +
//
 +
// Script Title:    osParcelSubdivide.lsl
 +
// Script Author:
 +
// Threat Level:    High
 +
// Script Source:  SUPPLEMENTAL http://opensimulator.org/wiki/osParcelSubdivide
 +
//
 +
// Notes: See Script Source reference for more detailed information
 +
// This sample is full opensource and available to use as you see fit and desire.
 +
// Threat Levels only apply to OSSL & AA Functions
 +
// See http://opensimulator.org/wiki/Threat_level
 +
// ================================================================
 +
// C# Source Line:     public void osParcelSubdivide(LSL_Vector pos1, LSL_Vector pos2)
 +
// Inworld Script Line:    osParcelSubdivide(vector pos1, vector pos2);
 +
//
 +
// Example of osParcelSubdivide
 +
// This function allows subdivision of parcels programmatically.
 +
// Subdivides( start.x,start.y _to_ end.x,end.y ) Z is ignored but must exist in syntax
 +
default
 +
{
 +
    state_entry()
 +
    {
 +
        llSay(0,"Touch to subdivide adjacent Parcels using osParcelSubdivide");
 +
    }
 +
    touch_start(integer test)
 +
    {
 +
        vector start = <0.0, 0.0, 0.0>; //top corner
 +
        vector end = <100.0, 100.0, 0.0>;
 +
        osParcelSubdivide(start, end);
 +
    }
 +
}
  
|- valign="top"
 
|'''Function Syntax''' || <source lang="lsl">
 
osParcelSubdivide(vector pos1, vector pos2);
 
 
</source>
 
</source>
|- valign="top"
+
|description=Subdivides a parcel into two adjacent parcels within the same region.
|'''Example(s)||
+
|
 
+
}}
|}
+
 
+
[[Category:OSSL Functions]]
+
[[Category:OSSL_functions_without_example]]
+

Latest revision as of 16:30, 1 May 2019

osParcelSubdivide(vector pos1, vector pos2)
Subdivides a parcel into two adjacent parcels within the same region.
Threat Level High
Permissions ESTATE_MANAGER,ESTATE_OWNER
Extra Delay 0 seconds
Example(s)
// ----------------------------------------------------------------
// Example / Sample Script to show function use.
//
// Script Title:    osParcelSubdivide.lsl
// Script Author:
// Threat Level:    High
// Script Source:   SUPPLEMENTAL http://opensimulator.org/wiki/osParcelSubdivide
//
// Notes: See Script Source reference for more detailed information
// This sample is full opensource and available to use as you see fit and desire.
// Threat Levels only apply to OSSL & AA Functions
// See http://opensimulator.org/wiki/Threat_level
// ================================================================
// C# Source Line:      public void osParcelSubdivide(LSL_Vector pos1, LSL_Vector pos2)
// Inworld Script Line:     osParcelSubdivide(vector pos1, vector pos2);
//
// Example of osParcelSubdivide
// This function allows subdivision of parcels programmatically.
// Subdivides( start.x,start.y _to_ end.x,end.y ) Z is ignored but must exist in syntax
default
{
    state_entry()
    {
        llSay(0,"Touch to subdivide adjacent Parcels using osParcelSubdivide");
    }
    touch_start(integer test)
    {
        vector start = <0.0, 0.0, 0.0>; //top corner
        vector end = <100.0, 100.0, 0.0>;
        osParcelSubdivide(start, end);
    }
}
Notes
This function was added in 0.7
Personal tools
General
About This Wiki