Last change
on this file since 5150 was
4442,
checked in by snellen, 18 years ago
|
spaceshiptowercontrolscript: start implementation
|
File size:
473 bytes
|
Line | |
---|
1 | -- Create the trigger |
---|
2 | trigger = ScriptTrigger() |
---|
3 | trigger:setScript("attractor.lua") |
---|
4 | trigger:setFunction("tick") |
---|
5 | trigger:setAbsCoor(440, 35, 0) |
---|
6 | trigger:setTarget("Player") |
---|
7 | trigger:setRadius(20) |
---|
8 | trigger:setDebugDraw(true) |
---|
9 | trigger:setTriggerRemains(false) |
---|
10 | |
---|
11 | |
---|
12 | |
---|
13 | --created = true |
---|
14 | function tick(timestep) |
---|
15 | |
---|
16 | io.write("Script called \n") |
---|
17 | |
---|
18 | --if not created then |
---|
19 | --am = AttractorMine() |
---|
20 | --am:setAbsCoor(-84, 19, 77) |
---|
21 | --created = true |
---|
22 | --end |
---|
23 | |
---|
24 | return false |
---|
25 | end |
---|
26 | io.write("script generated\n") |
---|
Note: See
TracBrowser
for help on using the repository browser.