Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

horrible90

Need Help: plugin for another mod

Recommended Posts

horrible90    0

i want to access, and reset a table/array in another prefab from another mod. The table only exists in the prefab file, and is local. There is no function implemented originally that removes stuff from the table, only adding stuff. I am attempting to make the change using addprefabpostinit. Im failing with a simple "Table = newTable" and i presume its because you cant access a local variable from outside the original file. Is there a way i can achieve what i want?

Share this post


Link to post
Share on other sites
Nappy    0

If the table is a fixed table that does not vary the number of items inside, have you tried table.remove(TableName, LineNumber)?

 

Share this post


Link to post
Share on other sites