Changeset 4095 for data/branches
- Timestamp:
- Jul 4, 2006, 2:24:48 PM (18 years ago)
- Location:
- data/branches/presentation
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
data/branches/presentation/scripts/effects.lua
r4091 r4095 10 10 -- Global Variables 11 11 fogActivated = false 12 RainActivated = false13 SnowActivated = false14 LightningActivated = false15 CloudActivated = false12 rainActivated = false 13 snowActivated = false 14 lightningActivated = false 15 cloudActivated = false 16 16 17 17 function tick(timestep) 18 18 19 io.write("script begin\n") 19 playerX = Player:getAbsCoorX() 20 playerY = Player:getAbsCoorY() 21 playerZ = Player:getAbsCoorZ() 20 22 21 cloud:skyColor(1, 0, 0, 15) 23 if playerX > -1200 and not cloudActivated then 24 cloud:activate() 25 cloudActivated = true; 26 end 22 27 28 if playerX > -1100 and cloudActivated then 29 cloud:cloudColor(1,0,0,5) 30 cloud:skyColor(0.5,0.5,0.5,5) 31 end 23 32 33 if playerX > -1000 and cloudActivated then 34 cloud:cloudColor(0.8,0.8,0.8,5) 35 cloud:skyColor(0,0,0.8,5) 36 end 24 37 25 io.write("scipt end\n") 38 if playerX > -500 then 39 io.write("script end\n") 40 return true 41 end 26 42 27 return true43 return false 28 44 29 45 end -
data/branches/presentation/worlds/sp_demo_mountain_lake.oxw
r4091 r4095 27 27 <file>effects.lua</file> 28 28 <function>tick</function> 29 <abs-coor> 0,100,0</abs-coor>29 <abs-coor>-1200,276,909</abs-coor> 30 30 <radius>10</radius> 31 31 <worldentity>Player</worldentity> … … 41 41 <Hover> 42 42 <name>Player</name> 43 <abs-coor> 50, 100, 50</abs-coor>43 <abs-coor>-1355, 281, 907</abs-coor> 44 44 </Hover> 45 45
Note: See TracChangeset
for help on using the changeset viewer.