Last change
on this file since 4887 was
4765,
checked in by snellen, 18 years ago
|
adapted all the scripts to the new trunk
|
File size:
487 bytes
|
Rev | Line | |
---|
[4614] | 1 | -- Create the trigger |
---|
[4765] | 2 | trigger = SpaceTrigger() |
---|
[4614] | 3 | trigger:setScript("switchtotower.lua") |
---|
| 4 | trigger:setFunction("tick") |
---|
| 5 | trigger:setAbsCoor(4480, 20, -3276) |
---|
| 6 | trigger:setTarget("Player") |
---|
| 7 | trigger:setRadius(500) |
---|
| 8 | trigger:setTriggerRemains(false) |
---|
| 9 | |
---|
| 10 | |
---|
| 11 | -- Add Objects |
---|
| 12 | thisscript:addObjectAsName("GameWorld", "Space Station 1B", "spacestationtower") |
---|
| 13 | |
---|
| 14 | function tick(timestep) |
---|
| 15 | if spacestationtower:setNextStoryName( "Space Station 1" ) then |
---|
| 16 | spacestationtower:stop() |
---|
| 17 | end |
---|
| 18 | return true |
---|
| 19 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.