Garry's Mod Wiki


  boolean ENTITY:IsJumpLegal( Vector startPos, Vector apex, Vector endPos )


Called when deciding if the Scripted NPC should be able to perform a certain jump or not.

This is only called for "ai" type entities


1 Vector startPos
Start of the jump
2 Vector apex
Apex point of the jump
3 Vector endPos
The landing position


1 boolean
Return true if this jump should be allowed to be performed, false otherwise.

Not returning anything, or returning a non boolean will perform the default action.