Jump to content
Barba-negra

remove zeus objects alone in one area

Recommended Posts

Hello guys, I hope you are very well, I am asking for help around here I am trying to make everything that is within the area of a trigger removed from Zeus, I am using this command

 

{{_x removeCuratorEditableObjects [allUnits,true];_x removeCuratorEditableObjects [vehicles,true];} forEach allCurators;} remoteExec ["bis_fnc_call", 2];
 

I am trying to use a single curator so that I only select the trigger but I have not yet managed to do it, could they help me out please, thanks

Share this post


Link to post
Share on other sites

Using inAreaArray, I was able to sort through an array of objects and find out which object is the trigger area defined by the variable name "trigger". To execute this, I put the script in a separate file in the mission folder and executed it with execVM.

In your mission folder:

// Script File:

{
	_x removeCuratorEditableObjects [(allUnits inAreaArray trigger), true];
	_x removeCuratorEditableObjects [(vehicles inAreaArray trigger),true];
} forEach allCurators;

In the debug console to execute:

// Execution example:

execVM "scripts\remove_inTrigger.sqf";


One thing I did notice is that objects like fences and buildings weren't removed.

  • Thanks 1

Share this post


Link to post
Share on other sites

Hello friends, I have come back here because of the same problem, previously the script was working but not anymore, it must be for the version of the game, what can I do please help

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

×