Jump to content

Recommended Posts

Hi!

 

Tried to pull it from an older character, but it doesn't seem to work anymore.

 

Using:

 

local function WatchPhase(inst, phase)    if phase == "summer" then		inst.AnimState:SetBuild("speksum")	end    if phase == "winter" then		inst.AnimState:SetBuild("spekwin")	end    if phase == "spring" then		inst.AnimState:SetBuild("spekspr")	end    if phase == "autumn" then		inst.AnimState:SetBuild("spek")	endend

As you can see the character has 4 different forms.

 

 

And
local function master_postinit(inst)      inst:ListenForEvent("phase",WatchPhase,TheWorld)

Simply isn't working, not sure why. Nothing else to the character at the moment.

 

Any thoughts?

 

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...