Mbfox Posted May 28, 2015 Share Posted May 28, 2015 (edited) Hello!I'm looking to implement three features, all of which i have no idea how to do.1) Stop peaceful animals running away2) Remove the shadow of my character 3) Remove the indicator for my characterThanks in advance for any help Edit: I am awful at modding so please guide me through like I'm a 5 year old Edited May 28, 2015 by Mbfox Link to comment Share on other sites More sharing options...
Seiai Posted May 28, 2015 Share Posted May 28, 2015 (edited) @Mbfox,the MakePlayerCharacter function on the bottom of your characterprefab is just a shortcut for all the stuff that actually has to be done to set up your characters, which u can find in player_common.luato disable your shadow:inst.DynamicShadow:Enable(false)to disable your minimapicon(which i guess u meant with "indicator"):inst.MiniMapEntity:SetEnabled(false)As for the creatures running away: u have to look into their brains (eg pigbrain.lua), to find the reason why the run away. usually they use a function called RunAway within the PriorityNode(which lists the behaviours the creature follows, the most prior at the top). Most creatures check for the "scarytoprey" Tag in their RunAway function, which again gets added to your character within player_common.lua.so u can stop most(!) creatures from running away from u, by removing the "scarytoprey" Tag from your character:inst:RemoveTag("scarytoprey") Edited May 28, 2015 by Seiai Link to comment Share on other sites More sharing options...
Mbfox Posted May 28, 2015 Author Share Posted May 28, 2015 @Seiai, Thanks so much! I've already disabled the map icon i just need to disable the indicators around the side of the screen. Link to comment Share on other sites More sharing options...
Seiai Posted May 28, 2015 Share Posted May 28, 2015 @Mbfox,i think this works via playertargetindicator.lua, but iam not completely sure if there's an easy way to disable it, u could try:inst:RemoveComponent("playertargetindicator") Link to comment 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