Advertisement
Guest User

Untitled

a guest
Sep 27th, 2010
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. private function OnDamage takes nothing returns boolean
  2. local integer i = S2I(R2S(GetEventDamage()))
  3. local player p = GetOwningPlayer(GetEventDamageSource())
  4. local unit u = GetTriggerUnit()
  5. local texttag tt = null
  6. if (i > 0) and (p != Player(0)) and (p != Player(6)) then
  7. set tt = CreateTextTag()
  8. call SetTextTagText(tt, + I2S(i), 0.023)
  9. call SetTextTagPos(tt, GetUnitX(u), GetUnitY(u), 0.0)
  10. call SetTextTagColor(tt, 255, 220, 0, 255)
  11. call SetTextTagVelocity(tt, 0.0, 0.03)
  12. call SetTextTagVisibility(tt, p==GetLocalPlayer())
  13. call SetTextTagFadepoint(tt, 1.0)
  14. call SetTextTagLifespan(tt, 2.0)
  15. call SetTextTagPermanent(tt, false)
  16. call BJDebugMsg(I2S(GetHandleId(tt)))
  17. endif
  18. set u = null
  19. return false
  20. endfunction
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement