now this method does work, but it's horribly untidy and it also means I have to create a new file like raceJetski.sqf every time I create a new event, And i'd like to avoid it if possible.
but this doesn't work of course, I'm just hoping someone can point me in the right direction. If what I want to do can't be done. that's fine. I'll continue using my old method. But I've gone through so many different links and guides, tried many different methods such as switch case, if, if else, nested ifs and I feel like i'm just beating my head against the wall.
Question
js2k6
I've been trying to re-write the way i currently call in my admin events using epoch admin tools
and i'm not having much luck.
I have a method that works, but i'd like to simplify it using the %1 and such, like the skin change tool uses.
currently i have the event files stored in my server.pbo
I added pveh like so, and i can call them from the tools.
admincompiles.sqf inside server.pbo, (called from the bottom of init\server_functions.sqf)
in AdminToolsMain.sqf I have
raceJetski.sqf
now this method does work, but it's horribly untidy and it also means I have to create a new file like raceJetski.sqf every time I create a new event, And i'd like to avoid it if possible.
what I want to do is something like this...
admintoolsmain.sqf
so in missionstart.sqf
(this is the bit i need help with!!!)
but this doesn't work of course, I'm just hoping someone can point me in the right direction. If what I want to do can't be done. that's fine. I'll continue using my old method. But I've gone through so many different links and guides, tried many different methods such as switch case, if, if else, nested ifs and I feel like i'm just beating my head against the wall.
Link to comment
Share on other sites
2 answers to this question
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