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 2723 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 2723 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...