I'm making a series of containers, and I want them to all act as one single container.
To do this, I'm making one of them a normal container (ae_bookshelf_vivec_1), and attaching this script to the others:
Begin ae_bookshelf_vivec_scriptif ( OnActivate == 1 ) "ae_bookshelf_vivec_1"->Activate, playerendifEnd
From Morrowind Scripting for Dummies:
Info from the UESP: There is an undocumented feature in the Activate function by specifying the player after the function, for example:
If the container is persistent (references persist) this script should open the container wherever the player is. This is a great way to create 'carryable' containers by attaching a script similar to the above to a ring or similar item.
begin RemoteContainer short OnPCEquip if ( OnPCEquip == 1 ) set OnPCEquip to 0 "dh_remote_chest_01"->Activate, player endifend
If the container is persistent (references persist) this script should open the container wherever the player is. This is a great way to create 'carryable' containers by attaching a script similar to the above to a ring or similar item.
The container (ae_bookshelf_vivec_1) is persistent, and yet whenever I activate one of the containers with the script attached, nothing happens.
Can anyone help me out here?
Thanks,
- Danjb