integer es;
default
{
state_entry()
{
es = 0;
}
touch_start(integer total_number)
{
vector er = llGetScale();
if(es == 0)
{
llSetPos(llGetLocalPos() - <er.x*2,0,0>
;es = 1;
}
else
{
llSetPos(llGetLocalPos() + <er.x*2,0,0>
;es = 0;
}
}
}
These forums are CLOSED. Please visit the new forums HERE
Sliding door form onclick to chat activated |
|
|
junk Fhang
Registered User
Join date: 28 Jun 2008
Posts: 4
|
09-13-2008 10:06
ok, basicly i am not a scripter in the slightest and i need this script changed from onclick to chat activated. any help would be much apreciated
integer es; default { state_entry() { es = 0; } touch_start(integer total_number) { vector er = llGetScale(); if(es == 0) { llSetPos(llGetLocalPos() - <er.x*2,0,0> ;es = 1; } else { llSetPos(llGetLocalPos() + <er.x*2,0,0> ;es = 0; } } } |
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
09-13-2008 22:47
add a listen in the front, with a filter for a key word, (or specific user key, like the owners), and then take the code from the touch event and place it instead in a listen event...
_____________________
|
| . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - |
|
junk Fhang
Registered User
Join date: 28 Jun 2008
Posts: 4
|
09-14-2008 12:50
haha, was the "im not a scripter in the slightet" a clue
still, i apreciated the reply |
|
Escort DeFarge
Together
Join date: 18 Nov 2004
Posts: 681
|
09-14-2008 13:44
Junk,
It sounds like you were not after a "scripting tip" but rather a "scripter". Hence you should have posted this request in the classified forums. Please read on... The REASON this is important is that you caused a respected scripter (Void Singer) to waste their time entirely in replying to you. The larger reason that this is important is that this is not a "free custom script" resource, it is a learning resource, and the more non-scripters who post here trying to get a free custom script then **the fewer times other scripters will be inclined to take time to help** and genuine posters will be held back from advancing their craft. Thus, the value of this forum is inversely proportional to the number of posts there are like yours. This is not meant to be a personal attack but rather a fuller answer than usual (e.g. "wrong forum, try classifieds" that explains in general terms why posts like yours are a BAD THING.regs, /esc _____________________
http://slurl.com/secondlife/Together
|
|
junk Fhang
Registered User
Join date: 28 Jun 2008
Posts: 4
|
09-15-2008 12:56
im an verry sorry to have wasted your time.
i shall post it in the classified and thanks for your time and the pleasent response rather than the whole shibang with cursing and swearing. |
|
Very Keynes
LSL is a Virus
Join date: 6 May 2006
Posts: 484
|
09-16-2008 01:15
I know little about vectors so I tried to adapt the script as an accademic exercise, without the actual door to test it in I'm not sure if this will work, but FWIW
CODE
_____________________
House of Keynes http://slurl.com/secondlife/Seopophang/237/151/104
![]() Romantica Yacht Club http://slurl.com/secondlife/Jeffrey/58/227/26 Salsa Romantica http://slurl.com/secondlife/Seopophang/77/91/94 |