Jump to content

How to filter targets for shadowwaxwell brain?


Recommended Posts

Hello everyone,

I want to prevent Maxwell's shadows from chopping trees that are not fully grown.

However, after the Maxwell patch everything seems to be way more complex. As I understand, the "FindAnyEntityToWorkActionsOn" function calls "FilterAnyWorkableTargets" which returns a target and then "FindAnyEntityToWorkActionsOn" will return a "BufferedAction" telling what to do with that target. I probably could achieve what I want if I just patch "FilterAnyWorkableTargets" but I don't know how to patch it or even how to "find" its address. So far the only option I see is to copy "FindAnyEntityToWorkActionsOn" and everything it is trying to use, which seems to be an antipatern.

In the end I would like to prevent shadows from cutting ungrown trees and destroying the glommer statue.

Any suggestion on where I should look at?

Best regards

Edited by PI_RATE
Wrong name
Link to comment
Share on other sites

image.thumb.png.2640de97415774dd4b898b50fe622430.png

inst:AddTag("event_trigger")

This funny tag is used to stop shadows from mining certain things such as bee queen hive and wobsters dens. Just add this to glommer statue and ungrown trees and everything should be poggers. I don't see anything that may cause any logic errors and is even used for the Christmas tree to stop this issue as well I think.

GL modding

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...