Scriptname PCKP_Script_GhostlyPrison extends activemagiceffect Static Property Cage autoevent OnEffectStart(Actor T, Actor C) ObjectReference Prison = T.PlaceAtMe(Cage, 1, false, true) while T.GetHeight() > Prison.GetHeight() || T.GetWidth() > Prison.GetWidth() || T.GetLength() > Prison.GetLength() Prison.SetScale(Prison.GetScale() + 0.10) endWhile float X = T.GetPositionX() float Y = T.GetPositionY() float Z = T.GetPositionZ() Prison.SetPosition(X,Y,Z + (Prison.GetHeight()/2)) Prison.SetAngle(0,0,0) Prison.enable(1) T.SetPosition(X,Y,Z) Utility.Wait(30) Prison.disable() Prison.delete()endEvent
So, a simple SetAngle(0,0,0) fixed it, but I'd still like to know what was going on.
Another problem: my setscale function seems to work fine for most things, but not really big guys. Dunno why, but the cage never shows up. Anyone have a clue how to fix?