Last change
on this file since 4221 was
4202,
checked in by bensch, 18 years ago
|
merged the data back from scripting
|
File size:
481 bytes
|
Line | |
---|
1 | -- Register Classes to use |
---|
2 | thisscript:registerClass("AttractorMine") |
---|
3 | thisscript:registerClass("ScriptTrigger") |
---|
4 | |
---|
5 | -- Create the trigger |
---|
6 | trigger = ScriptTrigger() |
---|
7 | trigger:setScript("attractor.lua") |
---|
8 | trigger:setFunction("tick") |
---|
9 | trigger:setAbsCoor(-84, 19, 77) |
---|
10 | trigger:setTarget("Player") |
---|
11 | trigger:setRadius(100) |
---|
12 | trigger:setDebugDraw(true) |
---|
13 | |
---|
14 | |
---|
15 | |
---|
16 | created = true |
---|
17 | function tick(timestep) |
---|
18 | |
---|
19 | if not created then |
---|
20 | am = AttractorMine() |
---|
21 | am:setAbsCoor(-84, 19, 77) |
---|
22 | created = true |
---|
23 | end |
---|
24 | |
---|
25 | return false |
---|
26 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.