I tried to create spell which will teleport player to target cell. When using this spell in game, game and Windows hangs - only possible solution is to do hard reset.
Scriptname TOWBook extends ActiveMagicEffectCell Property Backup autoCell Property BookTarget autoEvent OnEffectStart(Actor Caster, Actor Target)Debug.Notification("Started")if(Game.GetPlayer().GetParentCell() != BookTarget) Debug.Notification("Inside") Backup = Game.GetPlayer().GetParentCell() Debug.CenterOnCell("EmbershardMine01")else Debug.Notification("You already at home!")endIfDebug.Notification("Finished")EndEventor
Scriptname TutDungeonSword extends ObjectReferenceEvent OnContainerChanged(ObjectReference newContainer, ObjectReference oldContainer)if (newContainer == Game.GetPlayer()) Debug.CenterOnCell("EmbershardMine01")endifEndEvent