Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 4197 was 4161, checked in by snellen, 18 years ago

update

File size: 459 bytes
Line 
1-- Register Classes to use
2thisscript:registerClass("AttractorMine")
3thisscript:registerClass("ScriptTrigger")
4
5trigger = ScriptTrigger()
6trigger:setScript("attractor.lua")
7trigger:setFunction("tick")
8trigger:setAbsCoor(-84, 19, 77)
9trigger:setTarget("Player")
10trigger:setRadius(100)
11trigger:setDebugDraw(true)
12
13
14
15created = true
16function tick(timestep)
17
18if not created then
19am = AttractorMine()
20am:setAbsCoor(-84, 19, 77)
21created = true
22end
23
24return false
25end
Note: See TracBrowser for help on using the repository browser.