Jump to content

Recommended Posts

Hey people , i already made my char Hiroki , he is on workshop , but i would like  to add a feature to him transformation. Basicaly when his level its below 4 he has a certain skin and when his level its above 4 he has another skin , and above 12 he has another one  (just want the eyes to change) He levels up by eating nightmare fuel , but i dont know how to make a trigger to him so he changes appearence, and where should i put the files with the other appearence. I tried looking at Wolfgang , it helped a bit but im still not familiar with what happens in there.

hiroki.png

So first question how to trigger the transformation. Since your character levels up by eating nightmare fuel you can use the event listener for eating inside your master postinit function. 

inst.components.eater:SetOnEatFn(functionname)

This will let you say when your character eats do this function, from there you can perform a check to see if he ate nightmare fuel, what level he is, and change his build/skin accordingly.

If you made an entire additional build for your character you just need to put that folder inside your exported folder.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...