Pass thru Jumpthru platforms only if specific condition is met

I arleady made simmilar question before, but I need help with it again as the code used in there is OUTDATED and NEEDS IMPROVEMENT

If platform is in collision with ladder and Player is directly above the ladder, allow Player to pass thru the platform (and grab onto the ladder)
(Example: Pizza Tower)

The most important question is:
If I could actually use this option for the logic instead, but I haven’t found any “disable passing thru platforms” options in the events tho, thus why I am asking

If you can’t use that, what else would I need to do? Same thing as previous or is there a better way to do it?