1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2024-12-24 13:45:47 +00:00

unlock movement & camera when activating spirit form on seahorse

This commit is contained in:
fgenesis 2011-11-13 02:24:08 +01:00
parent fa844f29dd
commit 25dfb44a93

View file

@ -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