Delete on pickup event-item.

  • 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.

sandor_1234

Active Member
Jan 26, 2017
165
5
0
21
I am trying to delete the event-item involved in the pickup event.
When i use this code:
code_language.skript:
On Pick Up:
    clear event-item
It just gives the error:
"event-item stack can't be deleted/cleared"
Is there another way to delete / clear the item involved in a on pickup event?
 
why you dont try use cancel event? Like so:
code_language.skript:
on pick up:
    cancel event
else use event:
code_language.skript:
on death:
    clear inventory's player
some like that way.
 
why you dont try use cancel event? Like so:
code_language.skript:
on pick up:
    cancel event
else use event:
code_language.skript:
on death:
    clear inventory's player
some like that way.
I did cancel the event but this will cause to still trigger this event every tick because off the item still laying on the ground so that will become a big spam.
 
Status
Not open for further replies.