object.set_invincibility
This function makes an object invulnerable. Invulnerable objects cannot be killed or destroyed by weapons, explosions, physics, Forge-placed level boundaries, a map's built-in level boundaries, or (in the case of bipeds) the destruction of the vehicle they are piloting, or any other form of damage.
Arguments
- state
If this value is non-zero, the object is made invincible.
Example
for each player do current_player.biped.set_invincibility(1) end