Jump to content

Dragoons attempt to enter invalid state


_zwb
  • DLC VERSION - IMPORTANT!: Shipwrecked Pending
local function hatch(inst)
	inst.AnimState:PlayAnimation("egg_hatch")
	
	-- inst:ListenForEvent("animover", function(inst) 
	inst:DoTaskInTime(42*FRAMES, function(inst)
		local dragoon = SpawnPrefab("dragoon")
		dragoon.Transform:SetPosition(inst:GetPosition():Get())
		dragoon.components.combat:SuggestTarget(GetPlayer())
		dragoon.sg:GoToState("taunt")
		inst.SoundEmitter:PlaySound("dontstarve/wilson/rock_break")
		inst.components.lootdropper:DropLoot()
		inst:Remove()
	end)
end

In dragoonegg.lua, dragoons go to the state "taunt" which is not defined in their statehgraph


Steps to Reproduce

Read code




User Feedback


There are no comments to display.



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