Changeset 3962 for data/branches/single_player_map/scripts/prisoner.lua
- Timestamp:
- Jun 30, 2006, 2:05:39 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
data/branches/single_player_map/scripts/prisoner.lua
r3954 r3962 10 10 randTime = 0 11 11 12 13 function dist( x1,x2,x3, y1,y2,y3 ) 14 15 return math.sqrt( (x1-y1)^2 + (x2-y2)^2 + (x3-y3)^2 ) 16 17 end 18 12 19 function observeGuard() 13 20 guardX = guard:getAbsCoorX() … … 28 35 if dist( playerX,playerY,playerZ,161.76,49,358.87 ) < 60 then 29 36 playerInLock = true 37 end 38 30 39 end 31 40
Note: See TracChangeset
for help on using the changeset viewer.