Monster utilizing a Boom puller can't deactivate it

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
SPZ1
Posts: 205
Joined: Wed Aug 02, 2017 3:01 pm
Location: Illinois

Monster utilizing a Boom puller can't deactivate it

Post by SPZ1 »

I made an enemy which sucks the player towards it using a Boom puller. The problem is that the puller cannot be disabled with either Thing_DeActivate(); or Sector_ChangeFlags(); . What is also weird is that the monster is able to enable the sector puller ability in the first place. There are 2 places in my code where this is important: The Pain and Suck states. Take a look at it yourself: https://ufile.io/tr41woip
User avatar
SPZ1
Posts: 205
Joined: Wed Aug 02, 2017 3:01 pm
Location: Illinois

Re: Monster utilizing a Boom puller can't deactivate it

Post by SPZ1 »

Sorry for the double post but I just figured out that if the pusher/puller isn't spawned in the same sector as the one you are trying to activate/deactivate then it won't work!! :ugeek:

Return to “Scripting”