From 25dfb44a9384dac1b4af560dcdeb3b72c2cf200a Mon Sep 17 00:00:00 2001 From: fgenesis Date: Sun, 13 Nov 2011 02:24:08 +0100 Subject: [PATCH] unlock movement & camera when activating spirit form on seahorse --- game_scripts/scripts/entities/seahorsecommon.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/game_scripts/scripts/entities/seahorsecommon.lua b/game_scripts/scripts/entities/seahorsecommon.lua index 202d4b8..9b4de70 100644 --- a/game_scripts/scripts/entities/seahorsecommon.lua +++ b/game_scripts/scripts/entities/seahorsecommon.lua @@ -564,3 +564,15 @@ function exitState(me) entity_setState(me, STATE_WAIT) end end + +function shiftWorlds(me, old, new) + if v.riding then + if new == WT_SPIRIT then + entity_setRiding(v.n, 0) + cam_toEntity(v.n) + elseif new == WT_NORMAL then + entity_setRiding(v.n, me) + cam_toEntity(me) + end + end +end