self:is_on_wall

Client

Checks whether the character body is currently touching a wall


Syntax

local result = self:is_on_wall()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
boolresulttrue if the condition is met, false otherwise

Examples

Check if a character body is on a wall
local entity = physics.character.create()

core.engine.print("info", "Character body on wall:", entity:is_on_wall())

On this page