- Timestamp:
- Jun 27, 2006, 3:41:26 PM (19 years ago)
- 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 1 timeset = false 2 targetReached = false 2 3 3 4 function tick(timestep) 4 5 5 if not called then 6 io.write("thestranger.lua called \n") 7 thestranger:walkTo(288,19,208) 8 called = true 6 if not timeset then 7 thestranger:setTime(5) 8 timeset = true 9 9 end 10 11 if not targetReached then 12 distance = thestranger:walkTo(288,19,208) 13 end 14 15 if distance == 0 then 16 thestranger:turnTo(-1.57,0,1,0) 17 targetReached = true 18 end 19 --io.write("distance is now ",distance,"\n") 20 10 21 11 22 return false -
data/branches/single_player_map/worlds/sp_level_ambush_at_jupiter.oxw
r3905 r3914 30 30 <file>thestranger.lua</file> 31 31 <function>tick</function> 32 <abs-coor>-84, 19, 77</abs-coor>32 <abs-coor>-84, 19, 77</abs-coor> 33 33 <radius>50</radius> 34 34 <worldentity>Player</worldentity> … … 61 61 <model>models/creatures/doom_guy.md2, 10</model> 62 62 <md2texture>doom_guy.png</md2texture> 63 <abs-coor>-120, 19, 208</abs-coor>63 <abs-coor>-120, 29, 208</abs-coor> 64 64 <abs-dir>-1.55, 0, 1, 0</abs-dir> 65 65 </GenericNPC>
Note: See TracChangeset
for help on using the changeset viewer.