Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3914


Ignore:
Timestamp:
Jun 27, 2006, 3:41:26 PM (18 years ago)
Author:
snellen
Message:

implemented the stranger

Location:
data/branches/single_player_map
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • data/branches/single_player_map/scripts/thestranger.lua

    r3905 r3914  
    1 called = false
     1timeset = false
     2targetReached = false
    23
    34function tick(timestep)
    45
    5 if not called then
    6 io.write("thestranger.lua called \n")
    7 thestranger:walkTo(288,19,208)
    8 called = true
     6if not timeset then
     7thestranger:setTime(5)
     8timeset = true
    99end
     10
     11if not targetReached then
     12distance = thestranger:walkTo(288,19,208)
     13end
     14
     15if distance == 0 then
     16thestranger:turnTo(-1.57,0,1,0)
     17targetReached = true
     18end
     19--io.write("distance is now ",distance,"\n")
     20
    1021
    1122return false
  • data/branches/single_player_map/worlds/sp_level_ambush_at_jupiter.oxw

    r3905 r3914  
    3030     <file>thestranger.lua</file>
    3131     <function>tick</function>
    32      <abs-coor>-84, 19,77</abs-coor>
     32     <abs-coor>-84, 19, 77</abs-coor>
    3333     <radius>50</radius>
    3434     <worldentity>Player</worldentity>
     
    6161       <model>models/creatures/doom_guy.md2, 10</model>
    6262       <md2texture>doom_guy.png</md2texture>
    63        <abs-coor>-120, 19, 208</abs-coor>
     63       <abs-coor>-120, 29, 208</abs-coor>
    6464       <abs-dir>-1.55, 0, 1, 0</abs-dir>
    6565    </GenericNPC>
Note: See TracChangeset for help on using the changeset viewer.