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