Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
Kyka

Scripts triggered from monster drops.

Recommended Posts

Is it possible to trigger a script when picking up an item dropped by a dead monster?

Share this post


Link to post

In ZDoom, I suppose? Yes. But it's not trivial because you have to make a custom monster variant that'll drop a custom item. There's no way to have a monster give an item special to what it drops when it dies. So you've got to make the item run the script itself (use a CustomInventory so it can run instructions when picked up), and you'll need a custom monster so that it drops this custom item.

Share this post


Link to post

What about:

Don't make the monster drop the item, but place the item somewhere outside the map, and have Thing Action 80 set in the effects tab for the item. Then, teleport the item to the monster's corpse when it dies, with thing_move in a script. Then you can pick up the item and the script will activate?

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×