Jump to content
Sign in to follow this  
infection

Replacing default BIS script in addon?

Recommended Posts

Hello, I'm looking to change a default BIS script and add it to a new addon I'm making, is there any way to make arma 3 load that instead of the default one? I know in arma 2 you can put the same folder structure in your mission and it loads that but is it possible in addons?

So instead of loading

\A3\functions_f\example.sqf

it would load

\my_addon\my_functions\edited.sqf

---------- Post added at 23:50 ---------- Previous post was at 22:08 ----------

I think I figured out the best way of doing it by changing the

class cfgFunctions

of A3_Functions_F

to instead compile your edited function.

Atleast it works.

Share this post


Link to post
Share on other sites

this is the right approach. whats wrong with it?

Share this post


Link to post
Share on other sites
;2740480']this is the right approach. whats wrong with it?

Nothing, I formulated my last edit badly haha, sorry!

Share this post


Link to post
Share on other sites

Do you have an example showing how you did?

I took a look at CgfFunctions, and I have no idea what to do... (I'm trying to disable the damagePulse effect in the Feedback functions).

Share this post


Link to post
Share on other sites
Do you have an example showing how you did?

I took a look at CgfFunctions, and I have no idea what to do... (I'm trying to disable the damagePulse effect in the Feedback functions).

https://github.com/Infectiondg/Mafia-Life-Addons/blob/master/%40ML_Addons/Addons/ML_Functions/config.cpp

class HSim {
	tag = BIS;		
	class GUI {
		class GUInewsfeed {
			file = "\ML_Functions\Functions\GUI\guiNewsfeed.sqf";
			description = "Load newsfeed";
		};
	};
};

That's what I did to replace the news feed in the main menu with my own for my upcomming addon, you'll have to looke through the functions_f file and decompile the config file then follow the same structure in your own file, make sure requiredAddons[] = {"A3_Functions_F"}; is there aswell.

Share this post


Link to post
Share on other sites

Thank you so much, that's very helpfull!

EDIT : Works like a charm; bye bye radial blur! :D

Edited by Pepe Hal

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×