Changeset 3965 for data/branches/single_player_map/scripts/secondguard.lua
- Timestamp:
- Jun 30, 2006, 5:29:32 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
data/branches/single_player_map/scripts/secondguard.lua
r3964 r3965 19 19 guardZ = guard:getAbsCoorZ() 20 20 21 if dist( guardX,guardY,guardZ,35.48, 29, 191.28 ) < 60 then21 if dist( guardX,guardY,guardZ,35.48, 29, 191.28 ) < 30 then 22 22 allOk = false 23 23 end … … 32 32 33 33 if dist( prisonerX,prisonerY,prisonerZ,162.757919,49,363.489349 ) < 60 then 34 io.write("Prisonner reached lock \n")35 --prisonerReachedLock = true34 --io.write("Prisonner reached lock \n") 35 prisonerReachedLock = true 36 36 end 37 37 … … 283 283 end 284 284 285 if secondguard:finalGoalReached() then 285 guardX = secondguard:getAbsCoorX() 286 guardY = secondguard:getAbsCoorY() 287 guardZ = secondguard:getAbsCoorZ() 288 289 if dist( guardX,guardY,guardZ, 2.861493, 29, -1705.131958) < 60 then 286 290 return true 287 291 end … … 291 295 end 292 296 297 time = 2 293 298 function tick(timestep) 294 299 --io.write("Secondguard called \n") … … 301 306 end 302 307 308 --do talking 309 if cellReached then 310 time = time - timestep 311 end 312 313 314 if time < 0 then 315 303 316 if cellReached and not guidePositionReached then 304 317 guidePositionReached = goToGuidePosition(timestep) … … 313 326 end 314 327 328 329 end 330 331 315 332 return false 316 333 end
Note: See TracChangeset
for help on using the changeset viewer.