|
Genesis Ronmark
Registered User
Join date: 14 Aug 2007
Posts: 42
|
02-18-2008 12:50
quick help question as I struggle through this; looking to have it so you hit a specific key, and have it play an animation. like hit w and it plays a jump or something. I understand that the animation playing is llRequestPermissions(llGetOwner(),PERMISSION_TRIGGER_ANIMATION); llStartAnimation ("basic_sup"  ; I know how to set listen commands to do it as a /1 -title- but I'm looking for just a straight key.
|
|
RobbyRacoon Olmstead
Red warrior is hungry!
Join date: 20 Sep 2006
Posts: 1,821
|
02-18-2008 16:55
Here's a real bare-bones script that I believe will do what you are describing: default { state_entry() { if( llGetAttached() ) { llRequestPermissions( llGetOwner(), PERMISSION_TRIGGER_ANIMATION | PERMISSION_TAKE_CONTROLS ); llTakeControls( CONTROL_FWD, TRUE, TRUE ); } } control( key id, integer level, integer edge ) { if( (level & edge & CONTROL_FWD) ) { llStartAnimation( "myAnimation" ); } } attach( key id ) { llResetScript(); } }
|