Jump to content
Barba-negra

removeCuratorCameraArea forEach allCurators

Recommended Posts

hi guys, hello everyone, I come here to ask for help, I have managed to make all the objects and units of a trigger removed from the zeus using this command

 

_x removeCuratorEditableObjects [(allUnits inAreaArray trgr1),true];

 

but but also I would like to block the passage of the camera of the zeus inside the same trigger trgr1, then I have tried with several forms but I still do not find it

 

removeAllCuratorCameraAreas curatorObj

or

curatorObj removeCuratorCameraArea cameraAreaID

or

{_x removeCuratorCameraArea (trgr2 inAreaArray trgr2); } forEach allCurators;

 

How could I do this? please help

Share this post


Link to post
Share on other sites

 

{if (_x inArea thisTrigger) then {_x removeCuratorCameraArea ((curatorCameraArea _x) select 0)} } forEach allCurators;

Not tested. I'm not sure this is the condition you need but the consequence code should work.

 

Share this post


Link to post
Share on other sites

thanks Mr. pierremgi but I'm running it through scripts, calling the trigger with a variable thisTrigger, but it still does not work :(

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

×