1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Interact again

Discussion in 'Development' started by bySentixPE, May 24, 2018.

  1. bySentixPE

    bySentixPE Spider Jockey

    Messages:
    37
    How can I do something if the player interacts with the item a second time?
     
  2. kazuya

    kazuya Slime

    Messages:
    79
    GitHub:
    xdqrknez
    make an array or something
    on PlayerInteractEvent
    check if the item is the item you want
    if passed then add them(the player) to the array
    now on PlayerInteractEvent again
    check if the array contains the player
    if passed then do what you want
    and remove the player from array
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.