Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
POPKA

This allowdammage false

Recommended Posts

out of intrest what ever happened to the this allowdammge false/true command in the editor it seemed as if it was removed after version 1.0

Share this post


Link to post
Share on other sites

well, not only does it seem like it was removed, it actually was removed after 1.00 smile_o.gif

due to the potential abuse of the function in MP missions

Share this post


Link to post
Share on other sites

I also remember that some of the event handlers could be used ot make you invicible but after version 1.91 it didn't work.

Share this post


Link to post
Share on other sites

Nah, It still works:

player addeventhandler ["hit",{player setdammage 0}]

Share this post


Link to post
Share on other sites
Nah, It still works:

player addeventhandler ["hit",{player setdammage 0}]

I have a well placed bullet and a tank shell that'll render that peice of code useless.

The fact is there is no way to be invincible since that command was removed in 1.0.

Share this post


Link to post
Share on other sites

the trick to invincibility is to also add a 'killed' eventhandler just like the hit eventhandler. the hit EH makes sure you don't get wounded by small arms fire and the kill EH makes you invincible to hits that would kill you before the hit EH could take effect.

Share this post


Link to post
Share on other sites
the trick to invincibility is to also add a 'killed' eventhandler just like the hit eventhandler. the hit EH makes sure you don't get wounded by small arms fire and the kill EH makes you invincible to hits that would kill you before the hit EH could take effect.

No, It doesn't work. Try it and you will see. There is no way to make a unit invicible in the game.

Share this post


Link to post
Share on other sites

correction: that should be a dammaged EH not killed EH. put this in the unit' init line:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">this addeventhandler ["hit", {inv setdammage 0}];this addeventhandler ["dammaged", {inv setdammage 0}]

simply name the unit 'inv'. works on tanks, soldiers and cars but not so good with choppers and planes.

Share this post


Link to post
Share on other sites
correction: that should be a dammaged EH not killed EH. put this in the unit' init line:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">this addeventhandler ["hit", {inv setdammage 0}];this addeventhandler ["dammaged", {inv setdammage 0}]

simply name the unit 'inv'. works on tanks, soldiers and cars but not so good with choppers and planes.

I havn't tried using the dammaged eh, but I still have reservations as to weather or not it will work. EH share time with other events in the game, so if your game becomes bogged down at all, the 'damaged' EH may not fire before the game registers you as dead. This is the defintely the case when you try and use the 'hit' EH to become invicible.

Nevertheless I'll give it a try later on. smile_o.gif

Share this post


Link to post
Share on other sites

That seems to work - but it seemed to fail a few times when I put multiple men on the map and the action got heavy. Still it seemed fairly reliable.

Share this post


Link to post
Share on other sites
That seems to work - but it seemed to fail a few times when I put multiple men on the map and the action got heavy. Still it seemed fairly reliable.

Well, thanks to this my little dream came true. I have always blown others up with satchels, and i saw how high they flew. Of course i wanted to fly too, so now i put some satchels on myself, blew them up and flew : )

Share this post


Link to post
Share on other sites

You can still make something invincible with a named property,but thats nothing you can change on-the-fly

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×