Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SERIOUS SAM 3 EDITOR (SED3.5 working script, if you like it contact me on Steam "Adamasterr" or "master_adamaster")
- -- player : CPlayerPuppetEntity
- local player
- local health = 50
- local condition = false
- local cond1 = false
- local cond2 = true
- RunHandled(
- function()
- WaitForever()
- end,
- --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.."")
- OnEvery(Event(DetectorArea001.Activated)),
- function()
- condition = false
- cond1=false
- cond2=true
- while(cond2) do
- player = worldInfo:GetClosestLivingPlayer(StaticModel002, 8)
- print(player:GetName())
- if player ~= nil then
- condition = true
- while (condition) do
- worldInfo:ShowMessageToAll(""..health.."")
- Wait(Delay(0.05))
- player = worldInfo:GetClosestLivingPlayer(StaticModel002, 8)
- if (player == nil) then
- condition = false
- worldInfo:ShowMessageToAll("Players left the vicinity of the object.")
- cond2 = false
- end
- end
- end
- end
- DetectorArea001:Recharge()
- end
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement