Jump to content

Using an Activator to trigger a Container


kryptopyr

Recommended Posts

I'm trying to set up a trigger box to act as an activator for a container. Under primitive, I have Player Activation checked. And it has the following script attached...

 

Scriptname RWContainerTriggerScript extends ObjectReference

ObjectReference Property RWContainer auto

Event OnActivate(ObjectReference obj)
   if(obj == game.getPlayer())
       RWContainer.Activate(Game.GetPlayer())
   endif
endEvent

 

The code compiles without any errors, but when I go into the game, I can't find the activator (there doesn't seem to be anything to click) and nothing happens when I click on the space where the activator is suppose to be.

 

Any thoughts or suggestions?

Link to comment
Share on other sites

  • 8 years later...
  • Recently Browsing   0 members

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