self:is_visible

Client

Checks whether the character body is visible


Syntax

local result = self:is_visible()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
boolresulttrue if visible, false otherwise

Examples

Check visibility of a character body
local entity = physics.character.create()

core.engine.print("info", "Character body visible:", entity:is_visible())

On this page