removed useless _ folders
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
<Project name="BJ_Drinking_Script" guid="D6E8B00B-6C00-1014-B904-200204C60A89">
|
||||
<Object name="Object" guid="D6E8B0F6-6C00-1014-B904-200204C60A89">
|
||||
<Script name="BJ_Drinking_Script_1.lsl" guid="D6E8C735-6C00-1014-B904-200204C60A89">
|
||||
</Script>
|
||||
</Object>
|
||||
</Project>
|
||||
@@ -0,0 +1,63 @@
|
||||
// :CATEGORY:Animation
|
||||
// :NAME:BJ_Drinking_Script
|
||||
// :AUTHOR:Anonymous
|
||||
// :CREATED:2010-01-10 05:20:56.000
|
||||
// :EDITED:2013-09-18 15:38:48
|
||||
// :ID:90
|
||||
// :NUM:125
|
||||
// :REV:1.0
|
||||
// :WORLD:Second Life
|
||||
// :DESCRIPTION:
|
||||
// BJ Drinking Script.lsl
|
||||
// :CODE:
|
||||
|
||||
string anim ="drink";
|
||||
string anim2 ="hold_R_handgun";
|
||||
string falldown = "drunkfall";
|
||||
integer cntr = 0;
|
||||
integer checkit = 3;
|
||||
default
|
||||
{
|
||||
attach(key victim)
|
||||
{
|
||||
if(victim == NULL_KEY)
|
||||
{
|
||||
llStopAnimation(anim);
|
||||
llStopAnimation(anim2);
|
||||
llSetTimerEvent(0);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
llRequestPermissions(victim,PERMISSION_TRIGGER_ANIMATION);
|
||||
}
|
||||
}
|
||||
|
||||
run_time_permissions(integer permissions)
|
||||
{
|
||||
if (PERMISSION_TRIGGER_ANIMATION & permissions)
|
||||
{
|
||||
llStartAnimation(anim);
|
||||
llStartAnimation(anim2);
|
||||
llWhisper(0,"watch that third sip");
|
||||
|
||||
llSetTimerEvent(15);
|
||||
}
|
||||
}
|
||||
|
||||
timer()
|
||||
{
|
||||
llStopAnimation(falldown);
|
||||
llStartAnimation(anim2);
|
||||
llStartAnimation(anim);
|
||||
++cntr;
|
||||
if (cntr > 2) {
|
||||
cntr = 0;
|
||||
llStartAnimation(falldown);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// END //
|
||||
Reference in New Issue
Block a user