|
Mephisto Brennen
No Copy / Mod / Transfer
Join date: 20 Jul 2006
Posts: 84
|
02-11-2009 13:11
I hope somebody can help me, and if not, well i ll dig through a libary then. I just builded a guitar, but i bump into a problem when i am trying to script it Situation: 2 guitars, with the draw and holster scripts as reading one is alpha, and the other not, and when say a specific line, the other becomes alpha and the orignal alpha becomes visable.. so far no problems Now i want to make my avatar animate when ever I have the guitar in place. So i thought, since i couldn't find a script that fast that may contain this, to make it myself. Now i am not really familiar with LSL, and hoped you guys could help me out with this one. string pose = "PlayGuitar";
default { run_time_permissions(integer perm) { if (perm) { llSay("draw") llStartAnimation(pose); } llSay("hoster") llStopAnimation(pose); } }
As you see, this code lacks allot, and since I am working allot with action script myself (FLASH) and BEHaved (Q3 Engine) I kinda figured this was the most logical explination. But i get a bunch of syntax errors... and I have no idea what I am doing wrong. Could you guys help me a bit? Appriciated Meph
|
|
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
|
02-11-2009 14:33
Take a look at the DanceBall script in the LSL wiki at  . It's pretty close to what you are trying to do. Close enough that you ought to be able to at least see how it works and then tweak it for your own purposes. BTW, one of your syntax errors is in the llSay statement. It needs a channel, as in llSay(0,"Draw");
|
|
Mephisto Brennen
No Copy / Mod / Transfer
Join date: 20 Jul 2006
Posts: 84
|
02-11-2009 17:55
Thank you for your responds, i ll defenatly will take a look at it 
|
|
DebbieAnn Fairplay
Registered User
Join date: 14 Jul 2004
Posts: 35
|
can someone tell me how...
02-11-2009 18:11
to put the stop animation button on this script... its like a dance ball but I need the stop option... couldnt figure that part out... can someone help me? FYI, I know NOTHING about scripts... most of this stuff I copied from a totorial. It works great for what I want except it didnt tell me how to stop it so the person can stand up again... Total Beyond totally BIG thanks to anyone who can help me. list seat = ["KneeUp","SitUp","sleep"]; string seat_chosen; key avatar; default { state_entry() { } touch_start(integer total_number) { avatar = llDetectedKey(0); llDialog(avatar, "choose a seat", seat, 11); llListen(11,"",NULL_KEY,""  ; } listen(integer channel, string name, key id, string message) { seat_chosen = message; llRequestPermissions(avatar, PERMISSION_TRIGGER_ANIMATION); } run_time_permissions( integer perm ) { if(PERMISSION_TRIGGER_ANIMATION & perm) { llStartAnimation(seat_chosen); } } }
|