Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 3, 2006, 9:10:39 PM (18 years ago)
Author:
snellen
Message:

continued implementation

File:
1 edited

Legend:

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

    r4068 r4070  
    1313guardStopped = false
    1414
    15 height = 80
     15height = 90
    1616
    1717-- Returns the distance between (x1,x2,x3) and (y1,y2,y3)
     
    4242playerZ = Player:getAbsCoorZ()
    4343
    44 if dist( guardX,guardY,guardZ,playerX, playerY, playerZ) > 150 and hangarProgrammed then
     44distance = dist( guardX,guardY,guardZ,playerX, playerY, playerZ)
     45
     46if distance > 250 and hangarProgrammed and not guardStopped then
    4547 secondguard:stop()
    4648 guardStopped = true
    4749end
    4850
    49 if dist( guardX,guardY,guardZ,playerX, playerY, playerZ) < 150 and hangarProgrammed and guardStopped then
    50  --secondguard:continue()
     51if distance < 250 and hangarProgrammed and guardStopped then
     52 secondguard:resume()
    5153 guardStopped = false
    5254end
     
    134136
    135137if not guideProgrammed then
    136 secondguard:walkTo( -104.757011, height, 171.200729)
    137138secondguard:walkTo( -100.266739, height, 171.345627)
    138139secondguard:walkTo( -91.152046, height, 171.639709)
Note: See TracChangeset for help on using the changeset viewer.