Jump to content

Recommended Posts

Posted

I'm trying to add weapons to weapon racks from a chest (with script), and I have no clue how to do it, if you actually can do it. Do anyone know if it's possible?

Posted

It has been done before. Might be something in the modders resources section. I just can't remember what it was called. It had a demonstration cell and showed how you could use a container to put items in and they be sorted out to different racks and things.

Posted

I didn't find any that was like i want it to be, so i'm trying to do the coding myself. I've made it take the weapons from the chest but only when im using the activator. Can you call the OnActivate event from another object (from a chest in the OnItemAdded event)?

 

  Reveal hidden contents

 

Posted

I've got it to work but have the problem that the script doesn't know when an item is on the rack. Is there any way I can get the state of the variable hasBeenTriggered in the rack script, to the container script?

Posted

I've thought about that but i'm making 1 rack 6 racks per material(sword, waraxe, mace, greatsword, battleaxe, warhammer) + plaques for dagger and bow (if there is a bow of that material), so i can't use global variables.

Posted (edited)

That doesn't give me the variable from a specific object, it only gives the variable from the script. Is there any other ways?

Edited by raboni
  • Recently Browsing   0 members

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