Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 3, 2006, 5:30:14 PM (19 years ago)
Author:
snellen
Message:

spaceship.lua implemented

File:
1 edited

Legend:

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

    r4063 r4066  
    1212hangarReached = false
    1313
    14 height = 29
     14height = 80
    1515
    1616-- Returns the distance between (x1,x2,x3) and (y1,y2,y3)
     
    4141playerZ = Player:getAbsCoorZ()
    4242
    43 if dist( guardX,guardY,guardZ,playerX, playerX, playerX) > 30 and hangarProgrammed then
     43if dist( guardX,guardY,guardZ,playerX, playerY, playerZ) > 30 and hangarProgrammed then
    4444 secondguard:stop()
    4545 guardStopped = true
    4646end
    4747
    48 if dist( guardX,guardY,guardZ,playerX, playerX, playerX) < 30 and hangarProgrammed and guardStopped then
     48if dist( guardX,guardY,guardZ,playerX, playerY, playerZ) < 30 and hangarProgrammed and guardStopped then
    4949 --secondguard:continue()
    5050 guardStopped = false
Note: See TracChangeset for help on using the changeset viewer.