Jump to content
  • 0
Sign in to follow this  
KennyChidorie

What's wrong with this script?

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites
You are about to reply to a thread that has been inactive for 1473 days.

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...