Advertisement
Guest User

Untitled

a guest
Jul 30th, 2015
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. SERIOUS SAM 3 EDITOR (SED3.5 working script, if you like it contact me on Steam "Adamasterr" or "master_adamaster")
  2.  
  3. -- player : CPlayerPuppetEntity
  4. local player
  5. local health = 50
  6. local condition = false
  7. local cond1 = false
  8. local cond2 = true
  9.  
  10.  
  11. RunHandled(
  12. function()
  13. WaitForever()
  14. end,
  15.  
  16. --OnEvery spolu s Detector Area, ked player odide, tak sa DA aktivuje znovu, dovtedy bude checkovat script ci je blizko player, vysledok bude pozitivny a bude ukazovat messageToAll(""..health.."")
  17. OnEvery(Event(DetectorArea001.Activated)),
  18. function()
  19. condition = false
  20. cond1=false
  21. cond2=true
  22. while(cond2) do
  23. player = worldInfo:GetClosestLivingPlayer(StaticModel002, 8)
  24. print(player:GetName())
  25. if player ~= nil then
  26. condition = true
  27. while (condition) do
  28. worldInfo:ShowMessageToAll(""..health.."")
  29. Wait(Delay(0.05))
  30. player = worldInfo:GetClosestLivingPlayer(StaticModel002, 8)
  31. if (player == nil) then
  32. condition = false
  33. worldInfo:ShowMessageToAll("Players left the vicinity of the object.")
  34. cond2 = false
  35. end
  36. end
  37. end
  38. end
  39. DetectorArea001:Recharge()
  40.  
  41.  
  42. end
  43. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement