Jump to content

Malbatross platform detection

  • Fixed

I think a long time ago walkable platforms were changed to ignore flying creatures, which broke some event handlers and results in Malbatross diving and dying through platforms

	EventHandler("dosplash", function(inst, data)
		if not inst.components.health:IsDead() and not inst.components.freezable:IsFrozen() and not inst.components.sleeper:IsAsleep() then
			--if inst:IsOnOcean() then
			if not TheWorld.Map:IsVisualGroundAtPoint(inst.Transform:GetWorldPosition()) and not inst:GetCurrentPlatform() then
				inst.readytodive = nil
	EventHandler("death", function(inst, data)
		--if not inst:IsOnOcean() then
		if TheWorld.Map:IsVisualGroundAtPoint(inst.Transform:GetWorldPosition()) or inst:GetCurrentPlatform() then
			inst.sg:GoToState("death", data)
			inst.sg:GoToState("death_ocean", data)

Steps to Reproduce

Fight Malbatross on boat

  • Like 4
  • Haha 1
  • Wavey 1
  • Big Ups 1

User Feedback

A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...