mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-11-15 14:09:06 +00:00
unlock movement & camera when activating spirit form on seahorse
This commit is contained in:
parent
fa844f29dd
commit
25dfb44a93
1 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue