Does the require an object work with cloned objects?
lightwriter
15 Oct 2015, 23:55Let's say I have a locked door and set the required item to run the script to unlock that with a key.... now in the game I use a CloneAndMoveObject function to clone and move the key to a chest, does that mean the cloned 'key' will work or not?
The Pixie
16 Oct 2015, 06:43It depends on how you are unlocking the door (as far as I am aware there is no built-in system like there is for containers). But probably no.
The cloned object will have all the same attributes except name, but will be a different object. locks on containers check the object itself, and the chances are your script does that or checks the name.
The way to do it is to put an attribute "unlocksdoor" on the key, and set that to the door. In the unlock script check that attribute is there and it is the right door.
The cloned object will have all the same attributes except name, but will be a different object. locks on containers check the object itself, and the chances are your script does that or checks the name.
The way to do it is to put an attribute "unlocksdoor" on the key, and set that to the door. In the unlock script check that attribute is there and it is the right door.