tobinator 41 Posted January 11, 2015 Hello, I just realized that I forgot to add to every object "this allowDamage false" and "this enableSimulation false". Both of this things are important for me...but now I'm just wondering, if I must add it to every object on my own or if theres any method to add it directly to every object...Can anybody help me pls? Hope you can help me. Greets Tobi Share this post Link to post Share on other sites
L3TUC3 32 Posted January 11, 2015 Open your mission.sqm in your text editor and add init="this allowDamage false; this enableSimulation false;"; to each item you want to have that init. Should look something like this: class Groups { items=1; class Item0 { side="WEST"; class Vehicles { items=1; class Item0 { position[]={6185.2148,43,16260.999}; azimut=-184.674; id=0; side="WEST"; vehicle="B_officer_F"; player="PLAY CDG"; leader=1; rank="LIEUTENANT"; skill=0.60000002; text="UnitPlayer"; init="this allowDamage false; this enableSimulation false;"; description="An ungrateful player"; }; }; }; }; Just make a backup first in case you fudge it. Share this post Link to post Share on other sites
tobinator 41 Posted January 12, 2015 Open your mission.sqm in your text editor and add init="this allowDamage false; this enableSimulation false;"; to each item you want to have that init. Should look something like this: class Groups { items=1; class Item0 { side="WEST"; class Vehicles { items=1; class Item0 { position[]={6185.2148,43,16260.999}; azimut=-184.674; id=0; side="WEST"; vehicle="B_officer_F"; player="PLAY CDG"; leader=1; rank="LIEUTENANT"; skill=0.60000002; text="UnitPlayer"; init="this allowDamage false; this enableSimulation false;"; description="An ungrateful player"; }; }; }; }; Just make a backup first in case you fudge it. okay, thx for it. Still lot of work, because I need to add this to many objects. But okay, better than doing this in the mission editor... Share this post Link to post Share on other sites
10pb 12 Posted January 13, 2015 When you say "every object" do you literally mean every mission object? If so, putting this in your init.sqf will do the job: { _x allowDamage false; _x enableSimulation false; } forEach (allMissionObjects ""); If you'd rather do it to objects of a specific class you can change it to (allMissionObjects "theClassName") A better solution would be to add all of the objects to an array (e.g _myArray), then modify the script to { _x allowDamage false; _x enableSimulation false; } forEach myArray; "Every object" is a bit vague though - give us more information so we can help you more. Don't manually edit your mission.sqm like previously suggested - it'll take you hours if there's a lot of objects! Share this post Link to post Share on other sites