Started by Kewun, Sep 11, 2016, 06:19 PM
Quote from: vito on Sep 11, 2016, 10:11 PMaction's list is not documented anywhere so I don't know maybe you will find something about water there.
Quote from: aXXo on Sep 13, 2016, 07:20 PMShould be achievable with Ray TracingTrace a ray between ( player.Pos.X, player.Pos.Y, player.Pos.Z + 5) and ( player.Pos.X, player.Pos.Y, -10 ) with flags only detecting collisions with objects and buildings.Check the entity it collides with. If the entity is Sea bed, coastal rocks or some submerged ship means the player is in or hovering above water.Though, vito's suggestion is also reliable and easier to implement.
Quote from: Kewun on Sep 14, 2016, 03:15 AMwhat is ray tracing? i never know