You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to get the c# files in a specific folder of my gamemode.
I want to get the files in the swb_weapons, to have them in a List when the server start and do things with after instead of creating the list manually.
I tried to do this :
IEnumerable<string>files=FileSystem.Data.FindFile("./code/swb_weapons","*.cs",false);Log.Warning("-------------- File Loader --------------");foreach(stringfileinfiles){Log.Info("File found : "+file);}
Yes but I have to hardcode the entityName ? The goal is to make it dynamic, if I create a new weapon, no need to edit something.
It's not realy realy useful but you know when you have an idea.. x)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello guys,
I'm trying to get the c# files in a specific folder of my gamemode.
I want to get the files in the swb_weapons, to have them in a List when the server start and do things with after instead of creating the list manually.
I tried to do this :
But I discoverd that is for local user folder.
Someone know how can I do what I want.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions