Lendrio Posted March 30, 2020 Share Posted March 30, 2020 I'm trying to make a character that cuts trees but fast and I don't know the line of code to do that, there's something ready, like damage ex: inst.components.combat.damagemultiplier = 5 or I will have to do from zero Link to comment Share on other sites More sharing options...
Divici Posted March 30, 2020 Share Posted March 30, 2020 11 hours ago, Lendrio said: I'm trying to make a character that cuts trees but fast and I don't know the line of code to do that, there's something ready, like damage ex: inst.components.combat.damagemultiplier = 5 or I will have to do from zero Inside your characters lau file under the common_postinit=function(inst), add the line: inst:AddTag("woodcutter") The code should look something like below -- This initializes for both the server and client. Tags can be added here. local common_postinit = function(inst) -- Minimap icon inst.MiniMapEntity:SetIcon( "character.tex" ) -- Lets him chop wood fast like Woodie inst:AddTag("woodcutter") Also for future reference, it would be easier to get help and assistance if you name what your problem is in the topic title. Have fun. 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