Originally Posted by
Birgwow
Trying again
One way to differentiate between flight and swimming is to use the various restrictive environment API:
Event Type: Status
Check On: Every Frame
Trigger:
Code:
function()
if IsFlying()
return true
end
Untrigger:
Code:
function()
return true
end
You can do the same for IsSwimming(). One caveat though, is that these environment API are very specific. Like, you can be at the surface of the water and it would still count as flying. I think for that case, you'd use something like IsSubmerged(). I might have mixed those up but you get the idea. Play around with it to get the results you need. Happy modding, brochacho!