Jump to content
  • 0

What's wrong with this script?


KennyChidorie
 Share

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

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

Question

  • 0

Hi Kenny,

llGetLocalRot() returns a rotation and llSetRot() expects one. In the middle of that, you're adding a vector <0,0, 5.0>. Rotations have four components, not the three of an XYZ vector. I think you'll want to convert your vector to a rotation using llEulerToRot().

Try replacing <0,0, 5.0> with llEulerToRot(<0,0, 5.0>). That should make the error message go away, but still may not produce the results you desire.

Good luck!

  • Like 2
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Hi Kenny,

llGetLocalRot() returns a rotation and llSetRot() expects one. In the middle of that, you're adding a vector <0,0, 5.0>. Rotations have four components, not the three of an XYZ vector. I think you'll want to convert your vector to a rotation using llEulerToRot().

Try replacing <0,0, 5.0> with llEulerToRot(<0,0, 5.0>). That should make the error message go away, but still may not produce the results you desire.

Good luck!

  • Like 2
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 2295 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...