• 0
speedweasel

leading space before tree CfgInteractionModels?

Question

Contrast this

	class CleanWaterSource
	{
		name = "Clean Water";
		models[] = 	
		{
			"watercooler",
			"water_source_f",
			"Land_Sink_F",
			"pumpa",
			"Land_pumpa",
			"water_pump"
		};
	};

With this

	class WoodSource
	{
		name = "Trees";
		models[] = 
		{
			" t_",
			" bo_t_",
			// A2 trees
            " str_",
            " Smrk_",
            " les_",
            " brg_"  
		};
	};

Why do all the WoodSource classname prefixes (I'm assuming they're prefixes) have leading spaces?

I'm having problems adding wood sources to the Sahrani terrain and I want to know if this is a complicating factor.

Share this post


Link to post
Share on other sites

1 answer to this question

  • 0

We are checking the "name" of the object to identify a model, not the model itself. When we have done this system, getModelInfo was not available. So the string that we are checking is something like "#342342 blabla.p3d". It should not really make a difference :) But in case you have an object name that collides with a model name, you may want to add the space to be sure.

1 person likes this

Share this post


Link to post
Share on other sites
Advertisement

  • Recently Browsing   0 members

    No registered users viewing this page.