Destroyable bodies that dont block the player

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!)
User avatar
nekostuffing
Posts: 50
Joined: Sat Aug 31, 2019 8:08 pm
Graphics Processor: ATI/AMD with Vulkan/Metal Support

Destroyable bodies that dont block the player

Post by nekostuffing »

Hi i was wondering how i could make a dead enemy's body destroyable, without it blocking the players path, if im not mistaken, i belive both +NOBLOCKMAP and +NOCLIP prevent the object from taking damage from projectiles, it basically just goes right through them.
User avatar
Apeirogon
Posts: 1603
Joined: Mon Jun 12, 2017 12:57 am

Re: Destroyable bodies that dont block the player

Post by Apeirogon »

Set actor shootable flag to true, and make sure it didnt have noclip, nointeraction and noblockmap flags set to true.
User avatar
nekostuffing
Posts: 50
Joined: Sat Aug 31, 2019 8:08 pm
Graphics Processor: ATI/AMD with Vulkan/Metal Support

Re: Destroyable bodies that dont block the player

Post by nekostuffing »

Apeirogon wrote:Set actor shootable flag to true, and make sure it didnt have noclip, nointeraction and noblockmap flags set to true.
That works well, thanks! :)

Return to “Scripting”