ENTITY/IsJumpLegal

From Garry's Mod
Jump to: navigation, search
 ENTITY:IsJumpLegal( )

Contents

Description

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

NOTE

This is only called for "ai" type entities

Arguments

Vector startPos

Start of the jump

Arguments

Vector apex

Apex point of the jump

Arguments

Vector endPos

The landing position

Returns

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.
Personal tools
Navigation