Changeset 4202 for data/trunk/scripts/floorguy.lua
- Timestamp:
- Jul 17, 2006, 9:32:01 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
data/trunk/scripts/floorguy.lua
r4195 r4202 1 -- Create the trigger 2 trigger = ScriptTrigger() 3 trigger:setName("floorguytrigger") 4 trigger:setScript("floorguy.lua") 5 trigger:setFunction("tick") 6 trigger:setAbsCoor(576.753357, 19, 508.746613) 7 trigger:setTarget("Player") 8 trigger:setRadius(100) 9 1 10 -- Get objects from orxonox 2 11 thisscript:addObject("GenericNPC", "floorguy") … … 21 30 if time < 0 and time > -0.4 then 22 31 flyby:fire(true) 23 end24 25 if flybyZ < 600 then26 flyby:setAbsCoor(flybyX + dx, flybyY + dy, flybyZ + dz)27 32 else 28 33 flyby:fire(false) 29 34 end 30 35 36 if flybyZ < 600 then 37 --flyby:setAbsCoor(flybyX + dx, flybyY + dy, flybyZ + dz) 31 38 end 32 39 40 end 33 41 34 42 function tick(timestep)
Note: See TracChangeset
for help on using the changeset viewer.