NSKuber

Exercise 6 Helper

Mar 31st, 2021 (edited)
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.37 KB | None | 0 0
  1. RunAsync(function()
  2.   dofile("Content/SeriousSam4/Scripts/NSKuberShared/SortingEntitySpawnedScript.lua")
  3. end)
  4.  
  5. RunHandled(WaitForever,
  6.  
  7. OnEvery(CustomEvent("EntitySpawned_CPlayerPuppetEntity")),
  8. function(player)
  9.   --player : CPlayerPuppetEntity
  10.   while not IsDeleted(player) do
  11.     player:SetHealth(player:GetHealth() + 1)
  12.     Wait(CustomEvent("OnStep"))
  13.   end
  14. end)
Add Comment
Please, Sign In to add comment