NPC: Support backward compatibility.
This commit is contained in:
parent
ec0392096f
commit
5f9afae5d9
6
npc.lua
6
npc.lua
@ -1311,6 +1311,12 @@ function npc.after_activate(self)
|
|||||||
if self.yaw_before_interaction then
|
if self.yaw_before_interaction then
|
||||||
self.object:setyaw(self.yaw_before_interaction)
|
self.object:setyaw(self.yaw_before_interaction)
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
-- Temporary code - adds the new state variables
|
||||||
|
self.actions.move_state = {
|
||||||
|
is_sitting = false,
|
||||||
|
is_laying = false
|
||||||
|
}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user