Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 3, 2006, 2:51:25 PM (19 years ago)
Author:
snellen
Message:

spaceship.lua implemented

File:
1 edited

Legend:

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

    r4056 r4057  
    33thisscript:addObject("FPSPlayer", "Player")
    44thisscript:addObject("GenericNPC", "secondguard")
     5thisscript:addObject("GenericNPC","guard")
    56
    67
     
    1516
    1617randTime = 0
    17 height = 80
     18height = 29
    1819
    1920
     
    4041playerZ = Player:getAbsCoorZ()
    4142
     43
     44guardX = guard:getAbsCoorX()
     45guardY = guard:getAbsCoorY()
     46guardZ = guard:getAbsCoorZ()
     47
     48
    4249if dist( playerX,playerY,playerZ,161.76,49,358.87 ) < 60 then
    4350playerInLock = true
    4451end
    4552
    46 end
    47 
    48 
     53
     54if dist( guardX,guardY,guardZ,playerX, playerX, playerX) > 30 and hangarProgrammed then
     55 --prisoner:stop()
     56 guardStopped = true
     57end
     58
     59if dist( guardX,guardY,guardZ,playerX, playerX, playerX) < 30 and hangarProgrammed and guardStopped then
     60 --prisoner:continue()
     61 guardStopped = false
     62end
     63
     64end
    4965
    5066walkProgrammed = false
Note: See TracChangeset for help on using the changeset viewer.