removed useless _ folders
This commit is contained in:
3
Parachute_Platform/Parachute_Platform.sol
Normal file
3
Parachute_Platform/Parachute_Platform.sol
Normal file
@@ -0,0 +1,3 @@
|
||||
<Solution name="Parachute_Platform">
|
||||
<Project name="Parachute_Platform" path="Parachute_Platform\Parachute_Platform.prj" active="true"/>
|
||||
</Solution>
|
||||
@@ -0,0 +1,135 @@
|
||||
// :CATEGORY:Movement
|
||||
// :NAME:Parachute_Platform
|
||||
// :AUTHOR:mangowylder
|
||||
// :CREATED:2012-05-07 13:12:54.403
|
||||
// :EDITED:2013-09-18 15:38:59
|
||||
// :ID:605
|
||||
// :NUM:829
|
||||
// :REV:1.0
|
||||
// :WORLD:Second Life
|
||||
// :DESCRIPTION:
|
||||
// Parachute Platform Script
|
||||
// Mango Wylder
|
||||
// :CODE:
|
||||
// Parachute platform script (updated)
|
||||
|
||||
//
|
||||
|
||||
// Max height is 4000 meters.
|
||||
|
||||
// Uses LLDialog for menu and LLTextBox for user input
|
||||
|
||||
// Click the home button to return to original rez position
|
||||
|
||||
// When the last avi leaves the platform it will return to it's
|
||||
|
||||
// home postion
|
||||
|
||||
|
||||
|
||||
// Written by Mango Wylder except where noted
|
||||
|
||||
//
|
||||
|
||||
// function AvCount by Donjr Spiegelblatt
|
||||
|
||||
//
|
||||
|
||||
// Replaced warpos function with llSetRegionPos as
|
||||
|
||||
// suggested by Donjr Spiegelblatt
|
||||
|
||||
|
||||
|
||||
// changed all "Say/IM's" to llRegionSayTo
|
||||
|
||||
// Added sanity check so that an avi has to be on the platform
|
||||
|
||||
// to move it
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
list gLstChoices = ["MoveUp", "Home", "Cancel"];
|
||||
|
||||
integer gIntChannel_Dialog;
|
||||
|
||||
integer gIntChannel_Dialog1;
|
||||
|
||||
integer gIntListen_Id;
|
||||
|
||||
integer gIntListen_Id_Chat;
|
||||
|
||||
key gKeyToucherID;
|
||||
|
||||
vector gCurrentPos;
|
||||
|
||||
vector gHomePos;
|
||||
|
||||
vector destPos;
|
||||
|
||||
float gZv;
|
||||
|
||||
float X;
|
||||
|
||||
float Y;
|
||||
|
||||
float Z;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
integer AvCount()
|
||||
|
||||
{
|
||||
|
||||
// returns the number of avatars sitting on the object
|
||||
|
||||
return llGetNumberOfPrims() - llGetObjectPrimCount(llGetLinkKey(!!llGetLinkNumber()));
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
default{
|
||||
|
||||
on_rez(integer start_param){
|
||||
|
||||
llResetScript();
|
||||
|
||||
}
|
||||
|
||||
state_entry(){
|
||||
|
||||
gHomePos = llGetPos();
|
||||
|
||||
gIntChannel_Dialog = ( -1 * (integer)("0x"+llGetSubString((string)llGetKey(),-5,-1)) ); // set a negative integer chat channel for the dialog box
|
||||
|
||||
gIntChannel_Dialog1 = ( -1 * (integer)("0x"+llGetSubString((string)llGetKey(),-8,-1)) ); //set a negative integer chat channel for the text box
|
||||
|
||||
}
|
||||
|
||||
changed(integer change){ // determine when the last avi stands up and send platform home
|
||||
|
||||
if (change & CHANGED_LINK) {
|
||||
|
||||
if(AvCount() == 0){
|
||||
|
||||
destPos = gHomePos;
|
||||
|
||||
llSetRegionPos(destPos);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
touch_start(integer total_number){
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
<Project name="Parachute_Platform" guid="D8C508B7-6C00-1014-B904-200204C60A89">
|
||||
<Object name="Object" guid="D8C509BF-6C00-1014-B904-200204C60A89">
|
||||
<Script name="Parachute_Platform_1.lsl" guid="D8C52E2B-6C00-1014-B904-200204C60A89">
|
||||
</Script>
|
||||
</Object>
|
||||
</Project>
|
||||
Reference in New Issue
Block a user