Pandelle Posted March 2, 2016 Share Posted March 2, 2016 Hi! I'm looking to make a character of mine transform when insane, would anyone know how to do this? Link to comment https://forums.kleientertainment.com/forums/topic/65030-looking-to-make-a-transformation-simaler-to-wearbeaver/ Share on other sites More sharing options...
. . . Posted March 4, 2016 Share Posted March 4, 2016 -- You're insane, make stuff happen. inst:ListenForEvent("goinsane", function(inst, data) inst.AnimState:SetBuild("insane_pandelle") -- Make sure you have texture files for the Insane version of your character inst.components.combat.damagemultiplier = 100 inst.components.sanity.night_drain_mult = 0 inst.components.sanity.neg_aura_mult = 0 inst.components.locomotor.runspeed = 100 * TUNING.WILSON_RUN_SPEED end) -- You're sane, make your stuff stop. inst:ListenForEvent("gosane", function(inst, data) inst.AnimState:SetBuild("pandelle") inst.components.combat.damagemultiplier = 1 inst.components.sanity.night_drain_mult = 1 inst.components.sanity.neg_aura_mult = 1 inst.components.locomotor.runspeed = 1 * TUNING.WILSON_RUN_SPEED end) Put this in your "local master_postinit" Don't forget to add your asset ANIM( Your texture file name ) file in "local assets" "Asset( "ANIM", "anim/PANDELLE.zip" )," All this stuff goes in your character's Prefab file, this isn't a REAL form like Woodie's Beaver form it just changes the textures and change stats kind of form, it works for me I hope it works for you ! Link to comment https://forums.kleientertainment.com/forums/topic/65030-looking-to-make-a-transformation-simaler-to-wearbeaver/#findComment-729597 Share on other sites More sharing options...
Pandelle Posted March 9, 2016 Author Share Posted March 9, 2016 On 2016-03-04 at 8:22 PM, SuperDavid said: -- You're insane, make stuff happen. inst:ListenForEvent("goinsane", function(inst, data) inst.AnimState:SetBuild("insane_pandelle") -- Make sure you have texture files for the Insane version of your character inst.components.combat.damagemultiplier = 100 inst.components.sanity.night_drain_mult = 0 inst.components.sanity.neg_aura_mult = 0 inst.components.locomotor.runspeed = 100 * TUNING.WILSON_RUN_SPEED end) -- You're sane, make your stuff stop. inst:ListenForEvent("gosane", function(inst, data) inst.AnimState:SetBuild("pandelle") inst.components.combat.damagemultiplier = 1 inst.components.sanity.night_drain_mult = 1 inst.components.sanity.neg_aura_mult = 1 inst.components.locomotor.runspeed = 1 * TUNING.WILSON_RUN_SPEED end) Put this in your "local master_postinit" Don't forget to add your asset ANIM( Your texture file name ) file in "local assets" "Asset( "ANIM", "anim/PANDELLE.zip" )," All this stuff goes in your character's Prefab file, this isn't a REAL form like Woodie's Beaver form it just changes the textures and change stats kind of form, it works for me I hope it works for you ! thanks so much! Link to comment https://forums.kleientertainment.com/forums/topic/65030-looking-to-make-a-transformation-simaler-to-wearbeaver/#findComment-731593 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