entity jump||doc135443

September 20, 2022

Format

 Entity:jump(x, z) 
  • The class to which the function belongs:Entity

Description

jump.


Precautions

It is not recommended to directly call the jump function through the entity. It is recommended to call the jump function through the control class.


Parameters

Variable name type Description
x int the x value of the current movement vector
z int The z value of the current movement vector


Value Returned

type Description
boolean Whether the jump was successful


Code Samples

on the client side of the objectmount script, make the entity jump

local suce = this:jump()