Give player a inventory item to activate a script

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Locked
User avatar
Niphura
Posts: 192
Joined: Fri Jun 16, 2017 3:07 pm
Location: Argentina

Give player a inventory item to activate a script

Post by Niphura »

So...how can i can give an item to the player when he kills a monster? what i mean is when you shoot a monster and the monster dies it instantly gives you an item, I also wanted to know how to use those objects to check the player status
gramps
Posts: 300
Joined: Thu Oct 18, 2018 2:16 pm

Re: Give player a inventory item to activate a script

Post by gramps »

User avatar
Niphura
Posts: 192
Joined: Fri Jun 16, 2017 3:07 pm
Location: Argentina

Re: Give player a inventory item to activate a script

Post by Niphura »

Another question ... is there any line to determine the distance in which the enemy attack can affect the player?
Blue Shadow
Posts: 4949
Joined: Sun Nov 14, 2010 12:59 am

Re: Give player a inventory item to activate a script

Post by Blue Shadow »

Since that question is entirely not related to the one you asked in the OP, it's better that you create a new thread for it.
Locked

Return to “Scripting”