Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3921 for data/branches


Ignore:
Timestamp:
Jun 28, 2006, 5:32:09 PM (18 years ago)
Author:
snellen
Message:

added falldown.lua and lua_extra_functions

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  
    22panic = false             -- True if thestranger panics.
    33walkingRouteOne = false   -- True if thestranger is walking route one
     4randinit = false
     5
     6function randInit()
     7
     8if not randinit then
     9math.randomseed(os.clock())
     10randinit = true
     11end
     12
     13end
    414
    515
     
    2333function tick(timestep)
    2434
     35randInit()
     36
     37randNum = math.random()
     38io.write("random number is ", randNum, "\n")
     39
    2540if not walkingRouteOne then
    2641walkRouteOne()
  • data/branches/single_player_map/worlds/sp_level_ambush_at_jupiter.oxw

    r3914 r3921  
    2222    </Script>
    2323
     24
    2425   </Scripts>
    2526
     
    3132     <function>tick</function>
    3233     <abs-coor>-84, 19, 77</abs-coor>
    33      <radius>50</radius>
     34     <radius>100</radius>
    3435     <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>
    3750     <debugdraw>true</debugdraw>
    3851     <addtoscript>false</addtoscript>
    3952    </ScriptTrigger>
     53
    4054
    4155   </ScriptTriggers>
Note: See TracChangeset for help on using the changeset viewer.