Jump to content
Sign in to follow this  
spamurai

Is there a way to keep ArmA from every killing the player?

Recommended Posts

Is there a way to prevent a player from ever receiving enough damage to kill them and cause ArmA to remove them from the world? (So they go to spectator seagull mode or are respawned?)

In the First Aid/Simulation Editor Modules, if a players state of damage is 0.8 to 0.9 they are "disabled" into the "In Agony" animation until they expire or are revived by another character. While "In Agony", it is possible to make them invincible so they can't receive any further damage?

In this way, there would not be a respawn mode required and the player is therefore never out of the game and could be revived any number of times to keep the mission going so long as the means of reviving them (IE: Other Characters) remain active (IE: Not likewise disabled) in mission.

This would be different then the various "revive" scripts that allow the player to be killed and then respawn then "disabled" back into the world near to where they were initially killed. They would simply never take enough damage to ever actually kill them. (IE: They would have %101 health, but could only ever take %100 damage.)

Edited by Spamurai

Share this post


Link to post
Share on other sites
Is there a way to prevent a player from ever receiving enough damage to kill them and cause ArmA to remove them from the world? (So they go to spectator seagull mode or are respawned?)

In the First Aid/Simulation Editor Modules, if a players state of damage is 0.8 to 0.9 they are "disabled" into the "In Agony" animation until they expire or are revived by another character. While "In Agony", it is possible to make them invincible so they can't receive any further damage?

In this way, there would not be a respawn mode required and the player is therefore never out of the game and could be revived any number of times to keep the mission going so long as the means of reviving them (IE: Other Characters) remain active (IE: Not likewise disabled) in mission.

This would be different then the various "revive" scripts that allow the player to be killed and then respawn then "disabled" back into the world near to where they were initially killed. They would simply never take enough damage to ever actually kill them. (IE: They would have %101 health, but could only ever take %100 damage.)

if (((damage this)>=0.1) && ((damage this)<=0.2)) then this allowDamage false;

It'd be something along those lines, I'm a little fresh on scripting so it most likely won't work. (Edit: I've tested it, it doesnt bring any errors, but doesn't work either.)

The problem is, unless healed by a medic they'd stay invincible, as non-medic revive doesn't heal... Also, they may simply die if the damage is greater than 0.8-0.9.

Edited by Volw

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  

×