I have a "Pull chain'' and a "Portcullis" in my room.
This is the code for my Pull Chain:
Spoiler
scriptName NorPullBar01SCRIPT extends ObjectReferenceimport debugimport utilityAuto STATE Waiting EVENT onActivate (objectReference triggerRef) if (Game.GetPlayer().GetItemCount(A_LodronsBOSSKey) >= 1) self.BlockActivation(true) playAnimationandWait("Pull","Reset") self.BlockActivation(false) else ErrorBox.Show()endifendEVENTendStateMessage Property ErrorBox AutoKey Property A_LodronsBOSSKey AutoAs you can see it checks if you have a certain key, and when you have that key it will be able to pull, else it will give a message to you that will say you don't have the key.
Now I've tried the 'Activate Parents', 'Linked From' and 'Linked Ref' tabs but the last two obiously do not work and the first one also opens my "Portcullis" when you don't have the key.
Is there any way I can open the "Portcullis" only when you have the key?
For example changing it's Script Property "isOpen" to "isOpen"?
Thanks in advance.
