Jump to content
  • 0

How do I give permission to a script?


Haiku Quan
 Share

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

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

Question

When I try to restart my animation HUD I get an error message:

"Script trying to take controls from owner but PERMISSION_TAKE_CONTROLS permission not set!"

How do I set this permission so that the animation's script can run?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 1

The script has to include code that specifically requests PERMISSION_TRIGGER_ANIMATION and then triggers a run_time_permission event in which the animation is started. If the script was not written properly, or if the user has not granted permission, the animation may not run.  This is a common scripting error.  PERMISSION_TRIGGER_ANIMATION is always granted automatically when the scripted object is worn or sat upon, but inexperienced scripters may sometimes either forget or ignore the fact that the script is still supposed to ask permission.  Under some circumstances, that omission can keep the animation from triggering.

Edited by Rolig Loon
typos. as always.
Link to comment
Share on other sites

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...