Changeset 3921 for data/branches
- Timestamp:
- Jun 28, 2006, 5:32:09 PM (18 years ago)
- Location:
- data/branches/single_player_map
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
data/branches/single_player_map/scripts/thestranger.lua
r3919 r3921 2 2 panic = false -- True if thestranger panics. 3 3 walkingRouteOne = false -- True if thestranger is walking route one 4 randinit = false 5 6 function randInit() 7 8 if not randinit then 9 math.randomseed(os.clock()) 10 randinit = true 11 end 12 13 end 4 14 5 15 … … 23 33 function tick(timestep) 24 34 35 randInit() 36 37 randNum = math.random() 38 io.write("random number is ", randNum, "\n") 39 25 40 if not walkingRouteOne then 26 41 walkRouteOne() -
data/branches/single_player_map/worlds/sp_level_ambush_at_jupiter.oxw
r3914 r3921 22 22 </Script> 23 23 24 24 25 </Scripts> 25 26 … … 31 32 <function>tick</function> 32 33 <abs-coor>-84, 19, 77</abs-coor> 33 <radius> 50</radius>34 <radius>100</radius> 34 35 <worldentity>Player</worldentity> 35 <callonce>false</callonce> 36 ><triggerlasts>true</triggerlasts> 36 <triggerlasts>true</triggerlasts> 37 <debugdraw>true</debugdraw> 38 <addtoscript>true</addtoscript> 39 </ScriptTrigger> 40 41 42 <ScriptTrigger> 43 <name>panicTrigger</name> 44 <file>thestranger.lua</file> 45 <function>togglePanic</function> 46 <abs-coor>262, 19, 178</abs-coor> 47 <radius>10</radius> 48 <worldentity>thestranger</worldentity> 49 <triggerlasts>false</triggerlasts> 37 50 <debugdraw>true</debugdraw> 38 51 <addtoscript>false</addtoscript> 39 52 </ScriptTrigger> 53 40 54 41 55 </ScriptTriggers>
Note: See TracChangeset
for help on using the changeset viewer.