Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/old_trunk/scripts/attractor.lua @ 5298

Last change on this file since 5298 was 4442, checked in by snellen, 18 years ago

spaceshiptowercontrolscript: start implementation

File size: 473 bytes
Line 
1-- Create the trigger
2trigger = ScriptTrigger()
3trigger:setScript("attractor.lua")
4trigger:setFunction("tick")
5trigger:setAbsCoor(440, 35, 0)
6trigger:setTarget("Player")
7trigger:setRadius(20)
8trigger:setDebugDraw(true)
9trigger:setTriggerRemains(false)
10
11
12
13--created = true
14function tick(timestep)
15
16io.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
24return false
25end
26 io.write("script generated\n")
Note: See TracBrowser for help on using the repository browser.