NPC: Support backward compatibility.

This commit is contained in:
Hector Franqui 2017-10-19 21:51:16 -04:00
parent ec0392096f
commit 5f9afae5d9
1 changed files with 7 additions and 1 deletions

View File

@ -1311,7 +1311,13 @@ function npc.after_activate(self)
if self.yaw_before_interaction then
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
-- This function is executed on right-click