Jump to content
Sign in to follow this  
cruoriss

Editable unit by zues

Recommended Posts

Hi , i'd like to add unit spawned by EOS ediatable by zeus .

I know i can add editable unit with a module but i can't link it to eos marker .

Any way i could do it ?

edit : found this code on another thread

if (!isServer) exitWith{};

{zCurator addCuratorEditableObjects [[_x],true]} foreach vehicles;

{zCurator addCuratorEditableObjects [[_x],true]} foreach (allMissionObjects "Man");

while {true} do {

sleep 30;

{ 
   if (side _x == west) then 
   { 
   zCurator addCuratorEditableObjects [[_x],true];
   }; 

   if (side _x == east) then 
   { 
   zCurator addCuratorEditableObjects [[_x],true];
   }; 

   if (side _x == independent) then 
   { 
   zCurator addCuratorEditableObjects [[_x],true];
   };

   if (side _x == civilian) then 
   { 
   zCurator addCuratorEditableObjects [[_x],true];
   };

   }foreach allUnits;

};  

It add editor placed unit but no the one spawned by eos .

Edit : Put the code in a .sqf called by the mission init and it works now , change the code a bit :

while {true} do {

sleep 5;


{ 
   if (side _x == west) then 
   { 
   zCurator addCuratorEditableObjects [[_x],true];
   }; 

   if (side _x == east) then 
   { 
   zCurator addCuratorEditableObjects [[_x],true];
   }; 

   if (side _x == independent) then 
   { 
   zCurator addCuratorEditableObjects [[_x],true];
   };

   }foreach allUnits;

};

Edited by vinceXD

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
Sign in to follow this  

×