How would I go about scripting a freeze effect on an enemy.
For example, raycasting a spell and hitting an enemy then applying the effect.
Or something like Dead Space with the stasis field.
I’m setting up a trigger, but what’s the code to use in C# that when the enemy enters they stop moving?
And then obviously after a certain time via float, I imagine it’s just re-enabling whatever I turned off.
I can supply my code but for now a generic solution would be greatly appreciated.