OsParcelJoin

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
 
(9 intermediate revisions by 4 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
|- valign="top"
+
|function_syntax= osParcelJoin(vector pos1, vector pos2)
|'''Function Syntax''' || <source lang="lsl">
+
|ossl_example=<source lang = "lsl">
osParcelJoin(vector pos1, vector pos2);  
+
// ----------------------------------------------------------------
 +
// Example / Sample Script to show function use.
 +
//
 +
// Script Title:    osParcelJoin.lsl
 +
// Script Author:
 +
// Threat Level:    High
 +
// Script Source:  SUPPLEMENTAL http://opensimulator.org/wiki/osParcelJoin
 +
//
 +
// 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
 +
// ================================================================
 +
// Inworld Script Line:    osParcelJoin(vector start, vector end);
 +
//
 +
// Example of osParcelJoin
 +
// This function allows for creating and managing parcels programmatically.
 +
// Joins( start.x,start.y _to_ end.x,end.y ) Z is ignored but must exist in syntax
 +
default
 +
{
 +
    state_entry()
 +
    {
 +
        llSay(0,"Touch to Join adjacent Parcels");
 +
    }
 +
    touch_start(integer num_detected)
 +
    {
 +
        vector start = <0.0, 0.0, 0.0>; //top corner
 +
        vector end = <100.0, 100.0, 0.0>;
 +
        osParcelJoin(start, end);
 +
    }
 +
}
 
</source>
 
</source>
|- valign="top"
+
|description=Joins two adjacent parcels within the same region.
|'''Example(s)||
+
|
 
+
}}
|}
+
 
+
[[Category:OSSL Functions]]
+
[[Category:OSSL_functions_without_example]]
+

Latest revision as of 17:30, 1 May 2019

osParcelJoin(vector pos1, vector pos2)
Joins two adjacent parcels within the same region.
Threat Level High
Permissions ESTATE_MANAGER,ESTATE_OWNER
Delay 0 seconds
Example(s)
// ----------------------------------------------------------------
// Example / Sample Script to show function use.
//
// Script Title:    osParcelJoin.lsl
// Script Author:
// Threat Level:    High
// Script Source:   SUPPLEMENTAL http://opensimulator.org/wiki/osParcelJoin
//
// 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
// ================================================================
// Inworld Script Line:     osParcelJoin(vector start, vector end);
//
// Example of osParcelJoin
// This function allows for creating and managing parcels programmatically.
// Joins( start.x,start.y _to_ end.x,end.y ) Z is ignored but must exist in syntax
default
{
    state_entry()
    {
        llSay(0,"Touch to Join adjacent Parcels");
    }
    touch_start(integer num_detected)
    {
        vector start = <0.0, 0.0, 0.0>; //top corner
        vector end = <100.0, 100.0, 0.0>;
        osParcelJoin(start, end);
    }
}
Notes
This function was added in 0.7
Personal tools
General
About This Wiki