afetogbo Posted March 14, 2015 Share Posted March 14, 2015 This would allow theme servers with only theme appropriate characters. Link to comment Share on other sites More sharing options...
Kzisor Posted March 14, 2015 Share Posted March 14, 2015 @afetogbo, the following code will delete everyone but, Wilson. Can't figure out how to delete him. for _, _ in pairs(DST_CHARACTERLIST) do table.remove(DST_CHARACTERLIST, #DST_CHARACTERLIST)end Link to comment Share on other sites More sharing options...
DarkXero Posted March 14, 2015 Share Posted March 14, 2015 I did:for k, v in pairs(GLOBAL.DST_CHARACTERLIST) do GLOBAL.DST_CHARACTERLIST[k] = nilendBut you will need to add a mod character to the list or the random function that picks a character list to display on the screen will crash, because the list will be empty. Link to comment Share on other sites More sharing options...
rezecib Posted March 14, 2015 Share Posted March 14, 2015 (edited) Why not simply:GLOBAL.DST_CHARACTERLIST = {"somemodchar"} Edited March 14, 2015 by rezecib Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now