GhostXoP Posted December 23, 2012 Share Posted December 23, 2012 What function can i use to make a ped indestructible? Link to comment
Castillo Posted December 23, 2012 Share Posted December 23, 2012 You can either cancel the ped damage ( onClientPedDamage event ) with the function: cancelEvent, or you can use my resource to do this: https://community.multitheftauto.com/ind ... ls&id=5195 Link to comment
GhostXoP Posted December 23, 2012 Author Share Posted December 23, 2012 Theres nothing server side that will make an NPC non kill-able? What if i remove collision ? Link to comment
Castillo Posted December 23, 2012 Share Posted December 23, 2012 As far as I know, there isn't. But, what's wrong with cancelling the damage? it works perfectly fine. Link to comment
Smart. Posted December 23, 2012 Share Posted December 23, 2012 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 Link to comment
Castillo Posted December 23, 2012 Share Posted December 23, 2012 Well, I didn't even mention that because it would be inefficient. Link to comment
GhostXoP Posted December 23, 2012 Author Share Posted December 23, 2012 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? Link to comment
Castillo Posted December 23, 2012 Share Posted December 23, 2012 You can cancel the damage of specified ped elements ( by checking before cancel ). If you cancel globally, it'll not affect the players. Link to comment
GhostXoP Posted December 23, 2012 Author Share Posted December 23, 2012 So your saying, if i just cancel the event client side it will not affect players, and players can be damaged? Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now