self:is_visible
Client
Checks whether the vehicle body is visible
Syntax
local result = self:is_visible()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
bool | result | true if visible, false otherwise |
Examples
local entity = physics.vehicle.create()
core.engine.print("info", "Vehicle body visible:", entity:is_visible())