vitor335692 Posted February 21, 2017 Share Posted February 21, 2017 Hey guys, i'm creating a character mod and I want to make a perk for it to increase his normal speed and make it to take no damage for fire or summer Anyone know how to make it and where I put the codes in? Thanks already! Link to comment Share on other sites More sharing options...
Lumina Posted February 22, 2017 Share Posted February 22, 2017 (edited) You want permanent increase speed or you want something else ? If you want permanent increase speed, just change this line i think -- When the character is revived from human local function onbecamehuman(inst) -- Set speed when reviving from ghost (optional) inst.components.locomotor:SetExternalSpeedMultiplier(inst, "yourcharacter_speed_mod", 1) end Edited February 22, 2017 by Lumina Link to comment Share on other sites More sharing options...
vitor335692 Posted February 22, 2017 Author Share Posted February 22, 2017 4 minutes ago, Lumina said: You want permanent increase speed or you want something else ? If you want permanent increase speed, just change this line i think -- When the character is revived from human local function onbecamehuman(inst) -- Set speed when reviving from ghost (optional) inst.components.locomotor:SetExternalSpeedMultiplier(inst, "yourcharacter_speed_mod", 1) end Permanent, you know how to make no damage from fire and warm? Link to comment Share on other sites More sharing options...
Lumina Posted February 22, 2017 Share Posted February 22, 2017 I would have answered if yes. I know willow have a kind of fire immunity but don't know how it works exactly. Warm immunity is possible but i don't know what to change exactly either, so i hope someone else will be able to help with theses things. Link to comment Share on other sites More sharing options...
. . . Posted February 22, 2017 Share Posted February 22, 2017 (edited) I think putting these in YOURCHARACTER.lua inside the master_postinit will make your character not overheat or take fire damage, maybe! Spoiler inst.components.health.fire_damage_scale = 0 inst.components.health.fire_timestart = 999 inst.components.temperature.inherentsummerinsulation = 999 Edited February 22, 2017 by SuperDavid 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