Jump to content

Setting a ped to be non killable


GhostXoP

Recommended Posts

Posted

As far as I know, there isn't.

But, what's wrong with cancelling the damage? it works perfectly fine.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
Theres nothing server side that will make an NPC non kill-able? What if i remove collision ?

There is but I would not recommend using it. You could add a timer to set the ped's health to 100 every second but running a timer that many times would probably fuck up the server

lol

Posted

Well, I didn't even mention that because it would be inefficient.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

The timer would bog down a server, especially if i have hundreds of peds in businesses.

Canceling ped damage, would keep the player from being damaged too correct? Or would they be classified as peds too?

Posted

You can cancel the damage of specified ped elements ( by checking before cancel ). If you cancel globally, it'll not affect the players.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

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...