Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
hardcore_gamer

How can I make killed enemies drop weapons?

Recommended Posts

I am using a new custom enemy and I would like him to drop another custom weapon that I am also using once he dies. I know this can probably be done somehow via scripting but I don't know the code.

Does anyone know how to do this? I am modding for the latest version of Zdoom by the way, and in hexen mode.

Share this post


Link to post
hardcore_gamer said:

I know this can probably be done somehow via scripting but I don't know the code.

This is best achieved through DECORATE rather than scripting. Use the Drop Item actor property. Given that you have a custom weapon, I'll assume that you have already defined it. In that case, simply insert the name of your custom weapon with the probability value that the enemy drops the weapon (in this case, say, 100%). Your line of DECORATE code would look like this:

dropitem "[Name of Custom weapon]" 255

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
×