mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-06 00:45:34 +00:00
18 lines
327 B
Text
18 lines
327 B
Text
|
// A sample class
|
||
|
class Test : Object;
|
||
|
|
||
|
test()
|
||
|
{
|
||
|
state = printMessage;
|
||
|
}
|
||
|
|
||
|
state printMessage
|
||
|
{
|
||
|
// This state code will run as long as the object is in this state.
|
||
|
begin:
|
||
|
sleep(10);
|
||
|
print("Howdy from the world of Monster scripts!");
|
||
|
print("This script is located in mscripts/test.mn. Check it out!");
|
||
|
goto begin;
|
||
|
}
|