I am trying to create a power which freezes enemies in one place, making them still and irresponsive to anything. I know that disabling the ai should be sufficient for this task, so I created the following script:
know the spell is "hitting" the intended target because of the effects I configured, however, this script doesn't seem to work. Can someone help me to refactor the code, give me programming suggestions or tell me what I'm doing wrong? I just started scripting with papyrus a few hours ago, so I decided to post this question here in case someone wish to help me out while I figure it out (it should be something pretty basic hehe).
Thanks!
(below are the Effect and the Magic)