Jump to content

Help with script


DarkScience

Recommended Posts

You can use a form list as a parameter of AddItem to add a certain amount of every item in a list to a container, but if you want to check each item in a list then you'll need to use FOSE's looping and form list functions.

 

Scripts need to be set up in such a way that the code they contain is triggered by something. For example, the scripted object being activated, or the game being in GameMode for a frame. What do you want to trigger this particular event?

 

Cipscis

Link to comment
Share on other sites

It'd probably be best to restock the container whenever it is opened or closed. This should do what you need it to without attempting to do it every frame. Restocking the container every frame wouldn't cause noticeable lag, but it's completely unnecessary anyway.

 

Cipscis

Link to comment
Share on other sites

  • Recently Browsing   0 members

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