Avoid client state transition for monsters
This commit is contained in:
@@ -507,8 +507,11 @@ if monster.TransformComponent ~= nil then
|
||||
\tlocal scale = monster.TransformComponent.Scale
|
||||
\tmonster.TransformComponent.Scale = Vector3(-math.abs(scale.x), math.abs(scale.y), scale.z)
|
||||
end
|
||||
if monster.StateComponent ~= nil then
|
||||
\tmonster.StateComponent:ChangeState("IDLE")
|
||||
if monster.StateAnimationComponent ~= nil and monster.SpriteRendererComponent ~= nil then
|
||||
\tlocal stand = monster.StateAnimationComponent.ActionSheet["stand"]
|
||||
\tif stand ~= nil and stand ~= "" then
|
||||
\t\tmonster.SpriteRendererComponent.SpriteRUID = stand
|
||||
\tend
|
||||
end`, [{ Type: 'Entity', DefaultValue: null, SyncDirection: 0, Attributes: [], Name: 'monster' }]),
|
||||
method('Shuffle', `if list == nil then
|
||||
\treturn
|
||||
|
||||
Reference in New Issue
Block a user