Advertisement
NSKuber

Exercise 4 Bonus 1

Mar 31st, 2021
388
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.31 KB | None | 0 0
  1. RunHandled(WaitForever,
  2.  
  3. OnEvery(Event(worldInfo.PlayerBorn)),
  4. function(payload)
  5.   local player = payload:GetBornPlayer()
  6.   --player : CPlayerPuppetEntity
  7.   player:SetHealth(200)
  8. end,
  9.  
  10. On(Delay(2)),
  11. function()
  12.   worldInfo:ShowMessageToAll("Current difficulty: " .. worldInfo:GetGameDifficulty())
  13. end
  14. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement