Changeset 3966 for data/branches/single_player_map/scripts/falldown.lua
- Timestamp:
- Jun 30, 2006, 6:24:01 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
data/branches/single_player_map/scripts/falldown.lua
r3962 r3966 1 1 dy = 0 2 2 randTime = 0 3 3 eventFinished = false … … 15 15 16 16 function fallDown(timestep) 17 dy = dy + timestep*0.01 18 thisX = fallingguy:getAbsCoorX() 19 thisY = fallingguy:getAbsCoorY() 20 thisZ = fallingguy:getAbsCoorZ() 17 21 22 fallingguy:setAbsCoor(thisX, thisY - dy, thisZ) 23 24 if thisY < 0 then 18 25 eventFinished = true 26 end 27 19 28 end 20 29 … … 27 36 randTime = randTime - timestep 28 37 else 29 --io.write("Falldown called \n")30 38 fallDown(timestep) 31 39 end
Note: See TracChangeset
for help on using the changeset viewer.