Last change
on this file since 5484 was
4448,
checked in by snellen, 18 years ago
|
reorganized scripts (put them in folders), implemented levelchange by script, put some npcs in spaceshiptower
|
File size:
397 bytes
|
Line | |
---|
1 | -- Create the trigger |
---|
2 | trigger = ScriptTrigger() |
---|
3 | trigger:setName("testflighttrigger") |
---|
4 | trigger:setScript("testflight.lua") |
---|
5 | trigger:setFunction("tick") |
---|
6 | trigger:setActiveOnCreation(true) |
---|
7 | |
---|
8 | -- Add Objects |
---|
9 | thisscript:addObject("GameWorld", "Testlevel") |
---|
10 | |
---|
11 | -- Global Variables |
---|
12 | horizontalmode = false |
---|
13 | |
---|
14 | function tick(timestep) |
---|
15 | if not horizontalmode then |
---|
16 | --Testlevel:setPlaymode("Horizontal") |
---|
17 | end |
---|
18 | end |
---|
19 | |
---|
Note: See
TracBrowser
for help on using the repository browser.