Jump to content

Scripted activation (opening) of a container


maxrsp

Recommended Posts

This simple problem is frustrating me...

 

I want to access a container object interface through a script that has nothing directly to do with the container itself. I tried the following approach with no luck:

 

1. Declare a ref variable:

 

Ref rContainer

 

2. Set the variable using the reference editor ID of the desired container:

 

set rContainer to ModFC1

 

3. Open the container:

 

rContainer.Activate

 

The script which has these commands compliles and runs, but the Activate does not open the container inventory interface like I want. Please tell me what I am stupidly doing wrong.

 

Thanks!!!

 

P.S. Edit - the object ModFC1 is tagged as Persistent Reference.

Edited by maxrsp
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...