ENTITY/IsJumpLegal

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
 
Line 1: Line 1:
 
{{Hook
 
{{Hook
|Description={{NextUpdate}}Called when deciding if the Scripted NPC should be able to perform a certain jump or not.
+
|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}}
 
{{Note|This is only called for "ai" type entities}}
 
|Realm=Server
 
|Realm=Server

Latest revision as of 16:14, 4 September 2019

 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