ENTITY/IsJumpLegal

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Created page with "{{Hook |Description={{NextUpdate}}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}}...")
 
Line 22: Line 22:
 
{{Ret
 
{{Ret
 
|type=boolean
 
|type=boolean
|desc=Return true if this jump should be allowed to be performed, false otherwise
+
|desc=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.
 
}}
 
}}

Revision as of 14:15, 12 August 2019

 ENTITY:IsJumpLegal( )

Contents

Description

Next Update Change

This feature is only available in the next update.
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