criptname PossessionScript extends ActiveMagicEffectEVENT OnEffectStart(Actor Target, Actor Caster) if Caster.GetPlayerControls() Caster.SetPlayerControls(false) Target.SetPlayerControls(true) endIfENDEVENTEvent OnEffectFinish(Actor Target, Actor Caster) if Target.GetPlayerControls() Target.SetPlayerControls(false) Caster.SetPlayerControls(true) endIfENDEVENT
I've tried things liek disabling the AI of the target and many other things, but it still won't work. It just freezes the target, and makes the player only be able to look up/down, cast, sheathe/unsheathe and go to the tab menu. Anyone have an idea why this isn't working?
Also another question, another way I could possible do this is through the Console Command TC. Is there anyway to call console commands in a Papyrus script? Also, I heard that the console commands are papyrus scripts, if that is the case, where can I look up the source of them, as I would like to know how they made TC work as it does. Thank you.