mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 06:35:30 +00:00
7349221b9c
git-svn-id: https://openmw.svn.sourceforge.net/svnroot/openmw/trunk@62 ea6a568a-9f4f-0410-981a-c910a81bb256
18 lines
327 B
Plaintext
18 lines
327 B
Plaintext
// 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;
|
|
}
|