How can I make a dropped item fly farther away?

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!
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!)
User avatar
Pladek_Dobrov
Posts: 3
Joined: Wed Dec 26, 2018 2:07 pm

How can I make a dropped item fly farther away?

Post by Pladek_Dobrov »

So, if a killed enemy drops something, is there some kind of special function I can use that lets me define how far it will get thrown?
User avatar
Apeirogon
Posts: 1606
Joined: Mon Jun 12, 2017 12:57 am

Re: How can I make a dropped item fly farther away?

Post by Apeirogon »

Dropped by function like a_spawnitemex or by "drop chance" monster property?
User avatar
Pladek_Dobrov
Posts: 3
Joined: Wed Dec 26, 2018 2:07 pm

Re: How can I make a dropped item fly farther away?

Post by Pladek_Dobrov »

I was using A_Dropitem until now, but that doesn't allow for that. A_SpawnItemEx looks like exactly what I need, thanks.

Return to “Scripting”