Darth_Rogue Posted December 18, 2014 Report Share Posted December 18, 2014 Ok so I'm sure this will probably be a silly noob question but here goes anyways.... I'm tinkering with an AI package and trying to get it to run from a pbo on the server side. It requires that I call an init.sqf file to start the addon, but I can't figure out where to call the init from. I've tried putting the init load command in the mission file (which generates errors and a pubvar kick) and also tried putting it in one of the hpp files, which causes it to not load at all. Ideas?? Link to comment Share on other sites More sharing options...
1Man Posted December 26, 2014 Report Share Posted December 26, 2014 From what I understand which is just a little your init in your mission pbo will call to your server pbo. Example your altis pbo file extract and edit your init then repack and it will call from your server pbo's Link to comment Share on other sites More sharing options...
KiloSwiss Posted December 26, 2014 Report Share Posted December 26, 2014 #1.Any init.sqf inside the mission file (missionname.island.pbo) gets executed on mission start by the client and server.You then need a check like: if(!isDedicated)exitWith{}; or if(hasInterface)exitWith{}; to prevent clients from executing the code below this line.Check this list to see which files get executed when and where (client or server):https://community.bistudio.com/wiki/Event_Scripts#2.You don't need to start a Addon via an external script.Check out this little example addon that auto executes its own init.sqf on mission start: a3autoexec_addon.zipGreez KiloSwiss Sirpbo 1 Link to comment Share on other sites More sharing options...
pr0dukt Posted December 27, 2014 Report Share Posted December 27, 2014 fn_init.sqf calls to the internal a3_epoch_server.pbo init. just needs to be packed with the pbo you are making and any public variables you may be using need to be defined. 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