Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/trunk/scripts/attractor.lua @ 4221

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
2thisscript:registerClass("AttractorMine")
3thisscript:registerClass("ScriptTrigger")
4
5-- Create the trigger
6trigger = ScriptTrigger()
7trigger:setScript("attractor.lua")
8trigger:setFunction("tick")
9trigger:setAbsCoor(-84, 19, 77)
10trigger:setTarget("Player")
11trigger:setRadius(100)
12trigger:setDebugDraw(true)
13
14
15
16created = true
17function tick(timestep)
18
19if not created then
20am = AttractorMine()
21am:setAbsCoor(-84, 19, 77)
22created = true
23end
24
25return false
26end
Note: See TracBrowser for help on using the repository browser.