31.01.2013, 17:26
Greetings everybody... I have been searching arround for something about this and have not found anything so far... so... time to post it
Yesterday I was doing some lol stuff with a friend in our server and I were chasing him with a tank , suddendly, he turn in a corner, get down from his vehicle, pick up a desert eagle and shoot at me, destroying the tank after a few shots....
So now i was wondering how can I make the Tank a ""invincible"" vehicle, so it can be used properly. I guess I can make it invincible throught "OnPlayerUpdate", checking if the player is in a tank and is under X health, and setting it to the maximum... but i do not want it to be completely invincible.... I want it just lick the game, to be destroyed by explosives, rockets, grenades, etc... (If possible not flamethrower cos its OP)
So... u guys have any ideas how could I do it?
Thanks everyone!
Yesterday I was doing some lol stuff with a friend in our server and I were chasing him with a tank , suddendly, he turn in a corner, get down from his vehicle, pick up a desert eagle and shoot at me, destroying the tank after a few shots....
So now i was wondering how can I make the Tank a ""invincible"" vehicle, so it can be used properly. I guess I can make it invincible throught "OnPlayerUpdate", checking if the player is in a tank and is under X health, and setting it to the maximum... but i do not want it to be completely invincible.... I want it just lick the game, to be destroyed by explosives, rockets, grenades, etc... (If possible not flamethrower cos its OP)
So... u guys have any ideas how could I do it?
Thanks everyone!