Remove/Give item upon Vehicle enter/exit

● ARCHIVED · READ-ONLY
Started by 2fruit 4 posts View original ↗
  1. For a game I'm making, there's a key item that transfer a player to a bonus map. However the player can use this item when on a vehicle, causing the player to be stuck in the vehicle when transferred to the bonus map. Is there a way to remove a specific item, especially a key item, from the player when entering a vehicle and giving it back when exiting the vehicle?
  2. I assume you have a common event attached to the item?

    Simply add a conditional branch in the common event so that it only runs the commands if the player is NOT in a vehicle.
  3. Shaz said:
    I assume you have a common event attached to the item?

    Simply add a conditional branch in the common event so that it only runs the commands if the player is NOT in a vehicle.
    Thank you again Shaz!

    I had another (longer) method after posting where a parallel process checked if the player is on/off a vehicle and removes/gives the item.

    But your method is much better, thank you very much!
  4. Oh!  Nice call, Shaz.  I was about to suggest a totally different solution - yours is better.