Jump to content

Start animation after HUD answer, wrong function?


Ewadir
 Share

You are about to reply to a thread that has been inactive for 1879 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

6 hours ago, Estelle Pienaar said:

I think that your introduction to the problem is not clear. Who needs to be animated with a love/hate animation. The avatar that wears the HUD or the avatar that touches the HUD? Wolfie e.g. answered your question for the case that the avatar wearing the HUD needs to be animated. I understood that the person touching needs to be animated.

It wasn't really clear. The correct term should be "wearer" and not "user". So yes, I'm trying to animate the one who wears the HUD.

***

15 hours ago, Wulfie Reanimator said:

Here's the simplest, complete example I can give:

(Of course, you'll have to change "holdanimradio" to something that actually exists in the object.)

You have to make sure that you attach the object after you have saved the script. If you are already wearing the object when you save the script, the "attach" event never triggers, and it won't have permissions until you detach and reattach the object. This demonstrates that:

  1. Permissions to animate are given.
  2. You don't need a run_time_permissions event. (In this example. There are other cases where you would need to use it.)
  3. You can use llStartAnimation without problems.

Thank you, but it doesn't work for me this way. Anyway, it's working this way:

default {
	state_entry() {
		llRequestPermissions(llGetOwner(), PERMISSION_TRIGGER_ANIMATION);
[...]

and...

 else if (message == "Hate") {
   llStartAnimation("hate");
[...]

It's working simple as that. Not sure about caveats, still testing. Unbelievably easy :/ 

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 1879 days.

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
 Share

×
×
  • Create New...