Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 17, 2006, 9:32:01 AM (18 years ago)
Author:
bensch
Message:

merged the data back from scripting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • data/trunk/scripts/floorguy.lua

    r4195 r4202  
     1-- Create the trigger
     2trigger = ScriptTrigger()
     3trigger:setName("floorguytrigger")
     4trigger:setScript("floorguy.lua")
     5trigger:setFunction("tick")
     6trigger:setAbsCoor(576.753357, 19, 508.746613)
     7trigger:setTarget("Player")
     8trigger:setRadius(100)
     9
    110-- Get objects from orxonox
    211thisscript:addObject("GenericNPC", "floorguy")
     
    2130if time < 0 and time > -0.4 then
    2231flyby:fire(true)
    23 end
    24 
    25 if flybyZ < 600 then
    26 flyby:setAbsCoor(flybyX + dx, flybyY + dy, flybyZ + dz)
    2732else
    2833flyby:fire(false)
    2934end
    3035
     36if flybyZ < 600 then
     37--flyby:setAbsCoor(flybyX + dx, flybyY + dy, flybyZ + dz)
    3138end
    3239
     40end
    3341
    3442function tick(timestep)
Note: See TracChangeset for help on using the changeset viewer.