I have been trying to get information through script about the state of a teleporter. Specifically if it is activated or deactivated.
Can anyone help me with a script statement that will return the state of a teleporter?
Teleporter state
Re: Teleporter state
The Component:isEnabled() method returns true if the Component is enabled and false if it is not, so:
Code: Select all
if teleporter_26.teleporter:isEnabled() then
-- teleporter is activated
else
-- teleporter is deactivated
end
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.