Skip to content

ScriptingWillOWisp

SuperTux Bot edited this page Jul 8, 2024 · 4 revisions

This file is auto-generated from the SuperTux source code, using the template ScriptingPage.md.

Summary

A WillOWisp that was given a name can be controlled by scripts.

Instances

A WillOWisp is instantiated by placing a definition inside a level. It can then be accessed by its name from a script or via sector.name from the console.

Inheritance

This class inherits functions and variables from the following base classes:

Methods

Method Explanation
void set_state(string state) Sets the state of the WillOWisp.

state - One of the following: "stopped", "move_path" (moves along a path), "move_path_track" (moves along a path but catches Tux when he is near), "normal" (starts tracking Tux when he is near enough), "vanish".

Variables

None.

Constants

None.

Clone this wiki locally