-
-
Notifications
You must be signed in to change notification settings - Fork 539
ScriptingCandle
Ingo Ruhnke edited this page Aug 27, 2018
·
11 revisions
__NOTOC__
A Candle object that was given a name can be controlled by scripts.
A Candle
is instantiated via a definition in a level. It can be accessed by its name
in scripts and via sector.
name
in the console.
Example of a definition:
(candle
(name "CANDLE1")
(burning #f)
(x 1632)
(y 1088)
)
The above object will be exposed under the name CANDLE1 in the scripting engine. Example usage:
CANDLE1.set_burning(true);
Console usage:
sector.CANDLE1.set_burning(false)
get_burning() | returns true if candle is lighted |
---|---|
set_burning(bool burning) | true: light candle, false: extinguish candle |
None
Template:Navbox Scripting reference
Category:Scripting Reference
Home
Guidelines
Game Mechanics
Tools
Engine
- Cameras in other games
- Collision
- Configuration File
- Console
- Cutscenes
- Game_Engine
- Lighting
- Map_transformer
- Portables
- SceneGraph
- Scripting
Specifications
Milestones
- Milestone 1 Analysis
- Milestone 2 Design Document
- Milestone 2 Design Document Old
- Milestone 3 Design Document
Building (mostly outdated)
- INSTALL.md
- Building
- Building on macOS
- Building SuperTux
- Building on Windows
- Building with MXE (cross-compile)
Meetings