Results 1 to 3 of 3

Thread: Improved control of picked up objects

  1. #1

    Improved control of picked up objects

    I've got a mod where I'd like to snap a custom object to a "correct" rotation when a player picks it up. Unfortunately, all of the custom object types except for Dice automatically adjust their rotation to be "upright" and otherwise remain at the same rotation as they were laying on the board -- this means that once the player picks up my object, my "onObjectPickUp" fires and I try to setRotation, which properly snaps the object to a new rotation that it then immediately rotates away from.

    Could the "picked up" coding in TTS be updated so that if setRotation is called on an object while it's being held then that new rotation will become its "desired" rotation so it will preserve it? This is similar to how the player can manually rotate an object while holding it, except it would be driven by a script firing off while they're holding it.

    An alternative that would allow me similar freedom would be if there were an object type that behaved similar to Dice, but without the "Roll" functionality or additional icon they display on hover. I'm unclear why there's so many custom types that all seem to behave identically.

  2. #2
    Thinking about it more, a new custom object type that doesn't change rotation when picked up -- the same way "Dice" works but without the "Roll" functionality or special hover icon -- would actually be way more useful to me than modifying how the onPickUp event works.

  3. #3
    If you are looking for a healthy diet plan...! Here we offer you a https://fibroexpress.com/blog/fibromyalgia-diet-plan/ plan for free of cost.

Similar Threads

  1. [SOLVED] Improved FoW & Storing Visibility
    By LordAshes in forum Scripting
    Replies: 0
    Last Post: 08-25-2019, 08:58 PM
  2. Physics? bug: jointed items fly upwards when picked up
    By Mister Maf in forum Bug Reports
    Replies: 2
    Last Post: 10-17-2018, 12:06 PM
  3. Custom objects should not rotate when picked up
    By Banbury in forum Suggestions
    Replies: 0
    Last Post: 11-22-2015, 09:59 AM
  4. [ADDED] Improved Writing
    By Noctropolitan in forum Suggestions
    Replies: 1
    Last Post: 11-21-2015, 03:45 PM
  5. Replies: 1
    Last Post: 03-25-2015, 08:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •