Jump to content

Bezilon Kasei

Resident
  • Posts

    2
  • Joined

  • Last visited

Reputation

0 Neutral

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Thanks for both of you! The only problem I had was that I missed that the local rotation is respective to the root prim. Thus I'm not in need of a universal code, but thank you for taking your time and explaining it to me. The return value is not necessary I know, but it's still not a void function and it's just a habbit, casue 0 means that the function works well.
  2. Hey I was just wondering why this function doesn't rotate the linked prims in my HUD. The link numbers are fine and I followed the instructions on the wiki on how to rotate something with a desired angle. I even tried to give it my angles that I looked up in the build window, but it only nudges a tiny little bit and I don't really understand why. Please help! integer ColorMenu() { rotation on = llEuler2Rot(<0,0,90.0>*DEG_TO_RAD); rotation off = llEuler2Rot(<0,0,-90.0>*DEG_TO_RAD); if (colormenu) { llSetLinkPrimitiveParams(3,[PRIM_ROT_LOCAL,(llGetLocalRot()*off)]); llSetLinkPrimitiveParams(4,[PRIM_ROT_LOCAL,(llGetLocalRot()*off)]); llSetLinkPrimitiveParams(5,[PRIM_ROT_LOCAL,(llGetLocalRot()*off)]); colormenu = 0; } else { llSetLinkPrimitiveParams(3,[PRIM_ROT_LOCAL,(llGetLocalRot()*on)]); llSetLinkPrimitiveParams(4,[PRIM_ROT_LOCAL,(llGetLocalRot()*on)]); llSetLinkPrimitiveParams(5,[PRIM_ROT_LOCAL,(llGetLocalRot()*on)]); colormenu = 1; }; return 0; }
×
×
  • Create New...