Last change
on this file since 4521 was
4514,
checked in by snellen, 19 years ago
|
levelswitch in spacestation works now in both directions
|
File size:
548 bytes
|
Line | |
---|
1 | -- Create the trigger |
---|
2 | trigger = ScriptTrigger() |
---|
3 | trigger:setScript("switchtotower.lua") |
---|
4 | trigger:setFunction("tick") |
---|
5 | trigger:setAbsCoor(4470.895508, 17.554901, -3433.780518) |
---|
6 | trigger:setTarget("Player") |
---|
7 | trigger:setRadius(500) |
---|
8 | trigger:setTriggerRemains(false) |
---|
9 | trigger:setDebugDraw(true) |
---|
10 | |
---|
11 | |
---|
12 | -- Add Objects |
---|
13 | thisscript:addObjectAsName("GameWorld", "Space Station 1B", "spacestationtower") |
---|
14 | |
---|
15 | function tick(timestep) |
---|
16 | io.write("TESTING TESTING \n") |
---|
17 | if spacestationtower:setNextStoryName( "Space Station 1" ) then |
---|
18 | spacestationtower:stop() |
---|
19 | end |
---|
20 | return true |
---|
21 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.