I need help understanding a certain part of this script

Post » Thu Jun 03, 2010 8:53 am

I'm using a mod that allows you to lock items in place; http://www.tesnexus.com/downloads/file.php?id=6021. Recently it's been giving me trouble, and I seek to find out why. More specifically, the game crashes after locking an item, and then un-summoning the DA. Or re-summon in a different location. I understand how most of the scripts work, except for the part that actually freezes items in place and prevents them from moving again. Here is (what I believe to be) the actual block of script that locks an item;

Spoiler
;Convert To Static Menu
If button > -1 && MenuController == 2
If button == 0
Set bcDecoratorQuest.X_Position To Target.GetPos X
Set bcDecoratorQuest.Y_Position To Target.GetPos Y
Set bcDecoratorQuest.Z_Position To Target.GetPos Z

Set bcDecoratorQuest.X_Angle To Target.GetAngle X
Set bcDecoratorQuest.Y_Angle To Target.GetAngle Y
Set bcDecoratorQuest.Z_Angle To Target.GetAngle Z

Set bcDecoratorQuest.ConvertItem To Target

Set vStatic To Player.PlaceAtMe bcPlacer ,1, 0, 0
vStatic.SetOwnership

Set Z_Position To Target.GetPos Z
Set Z_Position To Z_Position - 5000

vStatic.SetPos Z, Z_Position

Set bcDecoratorQuest.ConvertStatic To vStatic

Message "Item Locked!"

User avatar
Alisia Lisha
 
Posts: 3480
Joined: Tue Dec 05, 2006 8:52 pm

Return to IV - Oblivion