deadpillar Posted November 18, 2014 Share Posted November 18, 2014 i want to make my character transform when equip specific weapon. (and also come back when off the weapon) so im thinking follow: in character prefab.lua Asset ( anim, normalform.zip)Asset (anim, newform.zip)--------- local function Normalform(inst) inst.AnimState:SetBank("normalform")inst.AnimState:SetBuild("normalform")inst.components. health, sanity hunger damage etc...instinst.....end---------- local function Newform(inst) inst.AnimState:SetBank("newform")inst.AnimState:SetBuild("newform")inst.components...inst..inst......end------------------------ please tell me if any wrong thing is here. next, special weapon's prefab.lua local function OnEquip(inst, owner)(some conditions should be here to make the system decidesamong function Normalform to Newform, i guess...) end------- local function OnUnequip(inst, owner)(some conditions should be here to make the system decides among function Normalform to Newform, i guess...) end-------- and i have no idea with how to make this concrete sorry for my english any help! Link to comment https://forums.kleientertainment.com/forums/topic/44453-need-some-advice-about-transforming-character/ Share on other sites More sharing options...
deadpillar Posted November 18, 2014 Author Share Posted November 18, 2014 or.. local function OnEquip(inst,owner) owner.AnimState:Bank("Newform")owner.AnimState:Build("Newform") ..etc end is it works? Link to comment https://forums.kleientertainment.com/forums/topic/44453-need-some-advice-about-transforming-character/#findComment-570538 Share on other sites More sharing options...
deadpillar Posted November 18, 2014 Author Share Posted November 18, 2014 Newform Normalform actually custom form of custom weapon(especially firearms) is what i need Transform is a way i think possible Link to comment https://forums.kleientertainment.com/forums/topic/44453-need-some-advice-about-transforming-character/#findComment-570540 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