Possession BUG

So I’m working on ghost possession mechanic right now. Turn into a ghost, go into a soldier’s body, control him for a while and shoot other enemies while controlling the soldier. Sounds fun, right? Well, it’s my fault for not writing the enemy code from the beginning to take player input - I’ve been running into some programming challenges. Fun challenges though. I’m close to making everything work.

Also, in order to make the ghost body disappear I’m scaling the ghost body using scripts and…. well you can see in the GIF. I created a weird bug where player’s body gets struck and infinitely increases in size while upside down. Probably because the scaling doesn’t stop at zero and goes into negative values. What a fun looking bug though. Almost lovecraftian.