Jump to content

Freeze health


IIYAMA

Recommended Posts

  • Moderators
Posted

Is it possible to freeze health without using canselevent()?

I mean get the health and freeze it?

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

  • Moderators
Posted

hmm.. well I don't wanna freeze the movement to.

Only the element data/health.

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

  • Moderators
Posted
cancelEvent , onPlayerDamage :)

.......

Ok it looks like there is no other way.

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

Posted
cancelEvent , onPlayerDamage

Wrong. You can cancel only onClientPlayerDamage event.

http://vk.com/the_kenix

Вопросы задавайте на форуме, не пишите мне в личку.

Please don't pm me.

Posted
addEventHandler('onClientPlayerDamage', getLocalPlayer(), 
function() 
cancelEvent() 
end) 
---or 
addEventHandler('onClientPlayerDamage', getLocalPlayer(), 
function() 
setElementHealth(source, 100) 
end) 

My ingame nickname : Ops!

-DeathMatch GameMode By Ops! : 5%

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...