Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

animation/gesture triggered by listen()

Dominguez Brentano
Registered User
Join date: 20 Apr 2006
Posts: 87
01-13-2007 17:39
hello again :)
I've just written the script below, with the intention of it calling the /fear gesture (which is enabled). I'm getting stuff back, but from the object attached to me, so it's not triggering anything...

how can I get this to cause the gesture upon hearing key words?

(sorry for my noobieness!) :)

CODE

default
{

state_entry()
{
llListen( 0, "", NULL_KEY, "" );
}

listen( integer channel, string name, key id, string message )
{
if ( message == "freeze!" )
{
llSay( 0, "/fear" );
// ohnoes!

llSay(0, "ohnoes!");
}

if ( message == "Freeze!" )
{
llSay( 0, "/fear" );
// ohnoes!
}

if ( message == "stick em up!" )
{
llSay( 0, "/fear" );

}

}
}
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
01-13-2007 23:15
Scripts cannot trigger gestures.
Covered previously here
Dominguez Brentano
Registered User
Join date: 20 Apr 2006
Posts: 87
01-14-2007 06:10
From: Newgate Ludd
Scripts cannot trigger gestures.
Covered previously here



thanks :)

so, if I use llStartAnimation in the script, while wearing the object, will the animation automatically work for me (once triggered), as I'm wearing it?
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
01-14-2007 06:47
From: Dominguez Brentano
thanks :)

so, if I use llStartAnimation in the script, while wearing the object, will the animation automatically work for me (once triggered), as I'm wearing it?


If you grant permission to animate your avatar then yes, when the llStartAnimation command is ghiven your avatar will be animated.