stategraphs/SGeyeplant.lua
78798081828384
onenter = function(inst, playanim)
inst.Physics:Stop()
if inst.components.combat.target then
inst:FacePoint(Vector3(inst.components.combat.target.Transform:GetWorldPosition()), true)
end
inst.AnimState:PlayAnimation("lookat", true)
end,
78798081828384
onenter = function(inst, playanim)
inst.Physics:Stop()
if inst.components.combat.target then
inst:ForceFacePoint(inst.components.combat.target.Transform:GetWorldPosition())
end
inst.AnimState:PlayAnimation("lookat", true)
end,
111112113114115116117
tags = {"attack", "canrotate"},
onenter = function(inst)
if inst.components.combat.target then
inst:FacePoint(Vector3(inst.components.combat.target.Transform:GetWorldPosition()), true)
end
inst.AnimState:PlayAnimation("atk")
end,
111112113114115116117
tags = {"attack", "canrotate"},
onenter = function(inst)
if inst.components.combat.target then
inst:ForceFacePoint(inst.components.combat.target.Transform:GetWorldPosition())
end
inst.AnimState:PlayAnimation("atk")
end,