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
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 accountSign in
Already have an account? Sign in here.
Sign In Now