Results 1 to 4 of 4

Thread: Event needed when object enters a "bag/deck" (not global).

  1. #1
    Join Date
    Jun 2017
    Location
    Argentina
    Posts
    32

    Event needed when object enters a "bag/deck" (not global).

    Hi,
    I need an event that allow me to script something after AND before (2 events) an object enters a bag or a deck.
    The event should be triggered on objects, not a global script.

    For example, I need to script a bag, that when someone drop an object on it, the object goes automatically to the bottom of that "stack/deck". An event is needed for this purpose.
    Last edited by francogp; 07-06-2017 at 09:17 AM.

  2. #2
    Current "global" event can also be put on any object script fine and you just need to ignore any case where "bag" object is not "self".

    What "Stack" you do mean? You can't rearrange items in a bag anyway.

  3. #3
    Join Date
    May 2016
    Posts
    1,072
    Using onCollisionEnter will trigger any time an object touches a bag. If you use getObjects() on the bag at that time, it will include the object that just entered the bag. Its not perfect but covers some use cases

  4. #4
    Join Date
    Jun 2017
    Location
    Argentina
    Posts
    32
    Quote Originally Posted by dzikakulka View Post
    What "Stack" you do mean? You can't rearrange items in a bag anyway.
    In cases of a deck. I need to put the first card on the bottom, in case that a user drop a card over that deck.

Similar Threads

  1. Replies: 1
    Last Post: 06-07-2017, 12:50 AM
  2. Replies: 2
    Last Post: 03-24-2017, 06:10 PM
  3. Replies: 1
    Last Post: 03-03-2017, 05:11 PM
  4. Replies: 2
    Last Post: 10-10-2016, 11:44 PM
  5. Replies: 2
    Last Post: 12-22-2014, 01:21 PM

Tags for this Thread

Posting Permissions

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