Solved On death cancel drop

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.
code_language.skript:
on death of player:
    clear drops
    set {inv::%victim%::*} to items in player's inventory

on respawn: #is this an event?
    add {inv::%player%::*} to player's inventory
i think this would work not 100% sure
 
Try with a delay:
code_language.skript:
on death of player:
    set {_drops::*} to drops
    remove drops from the drops
    wait 5 ticks
    add {_drops::*} to victim's inventory
 
Status
Not open for further replies.