PI_RATE Posted March 2, 2023 Share Posted March 2, 2023 (edited) 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 March 2, 2023 by PI_RATE Wrong name Link to comment https://forums.kleientertainment.com/forums/topic/146283-how-to-filter-targets-for-shadowwaxwell-brain/ Share on other sites More sharing options...
Rickzzs Posted March 2, 2023 Share Posted March 2, 2023 In case you don't know upvalue: https://github.com/ZzzzzzzSkyward/DSTmodification-strategy/tree/master/exercise-upvalue If it is not an upvalue, I'd rather copy everything or go elsewhere. Link to comment https://forums.kleientertainment.com/forums/topic/146283-how-to-filter-targets-for-shadowwaxwell-brain/#findComment-1623171 Share on other sites More sharing options...
Thomas_klei Posted March 4, 2023 Share Posted March 4, 2023 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 https://forums.kleientertainment.com/forums/topic/146283-how-to-filter-targets-for-shadowwaxwell-brain/#findComment-1623374 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now