-
-
Notifications
You must be signed in to change notification settings - Fork 491
ScriptingThunderstorm
Lennard Hofmann edited this page Dec 6, 2020
·
6 revisions
A Thunderstorm object that was given a name can be controlled by scripts.
A Thunderstorm
is initialised by a definition in the level. It can be accessed via its name
in scripts and sector.name
in the console.
Example of a definition:
(thunderstorm
(name "ELIZA")
(running #f)
)
The above object will be exposed under the name ELIZA in the scripting engine. Example usage:
ELIZA.thunder();
wait(2);
ELIZA.lightning();
In the console:
sector.ELIZA.electrify()
Method | Explanation |
---|---|
start() |
Starts playing thunder and lightning at configured interval. |
stop() |
Stops playing thunder and lightning at configured interval. |
thunder() |
Plays thunder. |
lightning() |
Plays lightning, i.e. call flash() and electrify() . |
flash() |
Displays a flash. |
electrify() |
Electrifies water throughout the whole sector for a short time. |
None
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