There are many mistakes in your script - inst
, LOS
, ray
and Player
are all undeclared, it's console.log
not Console.Log
, and the first reference to IsFalling
is undeclared. I would suggest going through the Learn JavaScript in Construct course which covers the basics of things like variable declarations.