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!)

Destroyable bodies that dont block the player

Postby nekostuffing » Thu Jun 16, 2022 3:25 am

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
nekostuffing
 
Joined: 31 Aug 2019
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: ATI/AMD with Vulkan Support

Re: Destroyable bodies that dont block the player

Postby Apeirogon » Thu Jun 16, 2022 10:05 am

Set actor shootable flag to true, and make sure it didnt have noclip, nointeraction and noblockmap flags set to true.
User avatar
Apeirogon
I have a strange sense of humour
 
Joined: 12 Jun 2017

Re: Destroyable bodies that dont block the player

Postby nekostuffing » Thu Jun 16, 2022 7:44 pm

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! :)
User avatar
nekostuffing
 
Joined: 31 Aug 2019
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: ATI/AMD with Vulkan Support


Return to Scripting

Who is online

Users browsing this forum: No registered users and 1 guest