Results 1 to 5 of 5

Thread: OnObjectFlip() event

  1. #1

    OnObjectFlip() event

    Currently there is no way for a script to react to object being flipped that I am aware of.

    Thus I suggest to add an event OnObjectFlip(flip_object, player_color) same as onObjectRandomize(randomize_object, player_color)


    The argument order is inconsistent between similar events:

    onObjectRandomize(randomize_object, player_color)
    onObjectPickUp(player_color, picked_up_object)
    onObjectPeek(object, player)

    Though I don't know how to fix it without breaking old scripts. May be you could do what Unity does when updating api:

    Last edited by MadCake; 07-03-2019 at 09:29 AM.

  2. #2
    Agreed with this. It could be really useful a lot of times since a LOT of games use flipping. It's fine (and potentially even good) if it misses flips done manually by holding alt and rotating.

  3. #3
    For that you could probably catch onObjectPickUp() and onDrop() checking whether object.is_face_down changed between the two

  4. #4
    True. Would be much easier to have onObjectFlip() though

  5. #5
    I would argue that the biggest problem is the impossibility of reacting to object being flipped by pressing F key
    You can catch pick-and-turn flip with onObjectPickUp() / onDrop()
    And you can catch flip by physics by checking object's rotation against previous frame
    There is no way to catch F-key flip though.

    An example of why you would want to target this flip:
    A script that enforced token ownership (you can only move/roll/flip your token, not someone else's).
    Here you would want to specifically prevent F-key flip.

Similar Threads

  1. onCollision event problem
    By Tumba in forum Scripting Bug Reports
    Replies: 0
    Last Post: 12-17-2018, 01:13 AM
  2. Event Trigger When Changing Die Value?
    By decumanusmaximus in forum Scripting
    Replies: 2
    Last Post: 10-04-2018, 02:50 PM
  3. Replies: 4
    Last Post: 08-02-2017, 12:30 AM
  4. onFlip event
    By Huffel in forum Scripting Suggestions
    Replies: 1
    Last Post: 01-15-2017, 02:18 PM
  5. Event log
    By Concerned Party host in forum General Discussion
    Replies: 0
    Last Post: 04-02-2016, 02:10 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