Jump to content
Sign in to follow this  
tigerforce

Is it possible to make a Warfare building Addon based on templates ?

Recommended Posts

Hi all,

I am adapting the Warfare BE to a Full French Army Version (OFrP, MAF and ADO mod) but Benny and me have a big problem. The warfare doesn't work with templates, so we need to create Addon to replace the BIS Warfare building.

Because i am not the specialist in Addon, i wish to create it (with classname) based on a classical type of building template (i have the templates in script "sqf").

So first question: Is it possibile ?

And if it is, could you help me ? :)

Thank by advance.

Regards...

Share this post


Link to post
Share on other sites

Best way to do this would be to create your "composition" as object using proxies. This is how I made my WOO buildings.

All you need is basic knowledge with O2.

One problem though: not all objects in Misc/Buildings/Structures are set up and configured to be used as proxies and may cause a flood of errors in the .rpt.

Plan B would be to have generic models as objects with an init-eventhandler that spawns and attaches a composition when the initial object placed.

Share this post


Link to post
Share on other sites

Thank for your quick answer Mondkalb.

I think i will prefer the "Plan B". But i have a lot of questions about it.

My templates are based on two sqf: one with the composition in itself and the other to place it on the map.

Ok, so if i want to replace the default Warfare "LAV25_HQ_unfolded" by my building. I have to replace the "LAV25_HQ_unfolded" in the core_structure by "OFrP_VAB" for exemple which plays the role of the LAV25. If i follow your statement, what i have to write for the eventhandler ( and where i have to put it (in the init.sqf perhaps ?).

Second question, in my templates, the "OFrP_VAB" is also present. So do i need to delete, or modify it ?

Thank you by advance

Share this post


Link to post
Share on other sites

You can either modify the Warfare scripts to execute a given script during the construction period, or add an init Eventhandler to the static object you intend to use as "MHQ Unfolded" model. Once this is placed, it's init EH will fire and spawn the rest of it.

It's config would have to have this:

		class EventHandlers : EventHandlers
	{
		init = "_this execVM 'Path\To\Script\Folder\Vote\Quimby\setYourCompositionUpScript.sqf';";
	};

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  

×