Jump to content
Sign in to follow this  
cruoriss

Editable unit by zeus

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 ?

I found this code but it only add unit placed in editor to zeus , not eos ones :

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;

};

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  

×