These lines are placed on NPC's script.
The thought is simple... when you go to sleep, lock the doors ref i tell above.
But it is not working. Even if the NPC is sleeping so the package check is 1 the doors are not locked
ScriptName 00SellusGraviusref NPCbegin GamemodeSet NPC to GetSelfif getIsCurrentPackage 00SellusGraviusSeydaNeenSleeping00x8 == 1SellusGraviusOfficeExteriorDoor1.Lock 99SellusGraviusOfficeExteriorDoor2.Lock 99endifif getIsCurrentPackage 00SellusGraviusSeydaNeenSleeping00x8 == 0SellusGraviusOfficeExteriorDoor1.UnlockSellusGraviusOfficeExteriorDoor2.UnlockendifEnd
I know i can do this in-package but i want to do it in-script
Can anyone help me?
Thanks