- 0
Chat to run multiple animation scripts on multiple avatars - -help!
You are about to reply to a thread that has been inactive for 4156 days.
Please take a moment to consider if this thread is worth bumping.
Please take a moment to consider if this thread is worth bumping.
Question
kari1sl
Chat to run multiple animation scripts on multiple avatars - -help!
I built a HUD to run a selection of animations but these would be better if I could run them through chats. But I can't even get this simple one below to work.
When I touch the object, "sparks fly", so something happens - but I don't get asked permission and chat "/11 kiss" does nothing.
Any help appreciated.
//kiss when chat "/11 kiss"
default
{
touch_start(integer startup)
{llResetScript();}
run_time_permissions(integer perm)
{
if (perm & PERMISSION_TRIGGER_ANIMATION)
{llListen(11, "","", "");}
else
{llRequestPermissions(llDetectedKey(0), PERMISSION_TRIGGER_ANIMATION);}
}
listen( integer channel, string name, key id, string message )
{
if (message == "kiss")
llStartAnimation("express_kiss");
}
}
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now