Foot object ID||doc135445

September 20, 2022

Format

 Entity:getCollidableUnderfootObjId() 
  • The class to which the function belongs:Entity

Description

Get the ID of the object that is currently actually stepping on it.


Value Returned

type Description
int Object ID


Code Samples

on the client side of the objectmount script, get the ID of the object that is actually stepping on

local underFootObjectId = this:getCollidableUnderfootObjId()
if underFootObjectId > 0 then
    print("todo")
end