Escape By Any Means Devlog pt13


This is the invisibility script.

This allows the player to go invisible by changing the material from an opaque material to a transparent material.

When you are invisible the boolean isInvisible is set to true.

Whilst this boolean is true you are able to walk through walls by using physics.ignorelayercollisions.

You are also able to be undetected by AI during the invisibility.

The invisibility lasts 5 seconds and then a 10 second cooldown is applied before you can re-use it.

Get Escape By Any Means