Jump to content
SP!DER

create many simple Objects

Recommended Posts

Hello,

I have a question.
In one of my missions I have placed huge number of objects in the edenEditor. I want all the placed Objects to be simpleObjects.

However I can't just make them simpleObjects all at once in the editor. We are looking at roughly 300 Objects.

 

I can insert the "createAsSimpleObject=1;" command into the class Attributes by hand but that would take a horrendous ammount of time.
As an example:

Spoiler

 


class Item70
        {
            dataType="Object";
            class PositionInfo
            {
                position[]={14477.523,17.760973,16784.561};
                angles[]={0,3.9232736,0};
            };
            side="Empty";
            flags=5;
            class Attributes
            {
            createAsSimpleObject=1;
            };
            id=231;
            type="Land_CrashBarrier_01_8m_F";
            atlOffset=0.081520081;
        };

 

 

 

 

Is there a way to create all the objects as simpleObjects via the SQF-file?
Like something with forEach or so? And could you give me an example on the given cutout?

Spoiler

 


		class Item70
		{
			dataType="Object";
			class PositionInfo
			{
				position[]={14477.523,17.760973,16784.561};
				angles[]={0,3.9232736,0};
			};
			side="Empty";
			flags=5;
			class Attributes
			{
			};
			id=231;
			type="Land_CrashBarrier_01_8m_F";
			atlOffset=0.081520081;
		};
        
		class Item71
		{
			dataType="Object";
			class PositionInfo
			{
				position[]={14466.963,17.773674,16794.857};
				angles[]={0,3.9232736,0};
			};
			side="Empty";
			flags=5;
			class Attributes
			{
			};
			id=233;
			type="Land_CrashBarrier_01_8m_F";
			atlOffset=0.16251373;
		};

 

 

 

 

The Problem is that I've placed several objects wich must be not be affected and have to stay normal objects.

 

Kind regards!

Share this post


Link to post
Share on other sites

It seems that some objects can't be simple. In 3den, if you don't find the "simple object" attribute, you can disable the simulation and damage.

Share this post


Link to post
Share on other sites
Just now, pierremgi said:

It seems that some objects can't be simple. In 3den, if you don't find the "simple object" attribute, you can disable the simulation and damage.


I know, thats why I've searched for an easy way to create them as simpleObjects via the SQF-File.  And i can do that with the "CreateAsSimpleObject=1"-command  but that would take an horrendous ammount of time... because i would have to add it to each class manually.

So my question really is about an easy way of doing this... like an forEach command or something like that. So that i can transform all the objects into simple objects. Disableing the simulation and damage wont do the trick because of an serversetting that i cant effect.

Share this post


Link to post
Share on other sites

Use this in the init of all the objects. I have had no problems with this despite what the BIKI says.

 

[this,true] call BIS_fnc_replaceWithSimpleObject;

This will set the object as a super-simple object regardless of what it is.

  • Like 1

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

×