Nyogtha Posted December 24, 2014 Share Posted December 24, 2014 Hi, I apologize for being so brief, but I am wondering if someone has some advice or code to make a character "friendly" with nightmares, or for that matter, any monstrous group. Any assistance would be greatly appreciated. Thank you. Link to comment https://forums.kleientertainment.com/forums/topic/47469-request-attempting-to-create-character-that-is-friendly-with-nightmares/ Share on other sites More sharing options...
BrotatoTips Posted December 24, 2014 Share Posted December 24, 2014 you could look at the stategraphs and nightmares individual files. this could lead you to some possible tags that might help or something or another. Link to comment https://forums.kleientertainment.com/forums/topic/47469-request-attempting-to-create-character-that-is-friendly-with-nightmares/#findComment-592139 Share on other sites More sharing options...
Mobbstar Posted December 24, 2014 Share Posted December 24, 2014 You can put a prefabPostInit into your modmain, and change the retargeting function... local function retargetfn(inst) --from shadowcreatures.lua local entity = FindEntity(inst, TUNING.SHADOWCREATURE_TARGET_DIST, function(guy) return [REPLACE some conditions that match what you want] and inst.components.combat:CanTarget(guy) --replace end) return entityend local function ShadowTargetOverride(inst) inst.components.combat:SetRetargetFunction(3, retargetfn)end AddPrefabPostInit("crawlinghorror",ShadowTargetOverride)AddPrefabPostInit("terrorbeak",ShadowTargetOverride) Link to comment https://forums.kleientertainment.com/forums/topic/47469-request-attempting-to-create-character-that-is-friendly-with-nightmares/#findComment-592173 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