|
Last change
on this file since 4536 was
4514,
checked in by snellen, 19 years ago
|
|
levelswitch in spacestation works now in both directions
|
|
File size:
507 bytes
|
| Rev | Line | |
|---|
| [4468] | 1 | -- Create the trigger |
|---|
| 2 | trigger = ScriptTrigger() |
|---|
| 3 | trigger:setScript("switchtohangar.lua") |
|---|
| 4 | trigger:setFunction("tick") |
|---|
| [4514] | 5 | trigger:setAbsCoor(-5.601662, 35, -1564.822632) |
|---|
| [4468] | 6 | trigger:setTarget("Player") |
|---|
| [4514] | 7 | trigger:setRadius(700) |
|---|
| [4468] | 8 | trigger:setTriggerRemains(false) |
|---|
| 9 | trigger:setDebugDraw(true) |
|---|
| 10 | |
|---|
| 11 | |
|---|
| 12 | -- Add Objects |
|---|
| [4504] | 13 | thisscript:addObjectAsName("GameWorld", "Space Station 1", "spacestationtower") |
|---|
| [4468] | 14 | |
|---|
| 15 | function tick(timestep) |
|---|
| [4504] | 16 | if spacestationtower:setNextStoryName( "Space Station 1B" ) then |
|---|
| 17 | spacestationtower:stop() |
|---|
| [4468] | 18 | end |
|---|
| 19 | return true |
|---|
| 20 | end |
|---|
Note: See
TracBrowser
for help on using the repository browser.