moving sign||doc136134

September 20, 2022

Format

 Entity.isMoving
  • The class to which the attribute belongs:Entity

Description

Whether the current entity is moving. In the riding and riding state, the displacement caused by the riding object or the riding object does not count as the movement of the current entity.


Value Returned

type Description
boolean If true, the current entity is moving


Code Samples

Output whether the current entity is moving

local isMoving = entity.isMoving
print(isMoving)