Search the Community
Showing results for tags 'costs'.
Found 2 results
-
Zeus Editing Hi, My names demestos, i like making missions and recently i've been given a question about restricting zeus's to certain factions and having said units in the factions cost. I unfortunately have no enditing experience with this request and have been puzzled to find out what to do. If anyone could help me make a template sort of thing where a CSAT officer has zeus, but once opened only has access to CSAT, CSAT Pacific forces, empty assets and modules and then having units in the tabs cost. Thank you in advance and i hope to hear from someone soon! 🙂
-
Zeus editing costs with RHS + limit factions in zeus.
Mr H. posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hi so I'm trying do do a mission where players will face a zeus with limited powers. The set units and vehicles costs module works fine with vanilla assets but not with units from RHS AFRF. On the wiki I've found this solution: myCurator addEventHandler [ "CuratorObjectRegistered", { _classes = _this select 1; _costs = []; { _cost = if (_x isKindOf "Man") then {[true,0.1]} else {[false,0]}; // Show only objects of type "Man", hide everything else _costs = _costs + [_cost]; } forEach _classes; // Go through all classes and assign cost for each of them _costs } ]; it works but only sets the cost of infantry units. I have changed it to: ZeusMaster addEventHandler [ "CuratorObjectRegistered", { _classes = _this select 1; _costs = []; { _cost = if (_x isKindOf "Man") then {[true,0.01]} else {[true,0.05]}; // CHANGED the else part _costs = _costs + [_cost]; } forEach _classes; // Go through all classes and assign cost for each of them _costs } ]; which sets the cost of all infantry units to 0.01 and all other objects to 0.05 but i can't change the cost further (i'd like to have cars < helicopters < tanks costs) for example. I've tried adding lines like _cost = if (_x isKindOf "Air") then {[true,0.01]} I've tried removing the " else {[true,0.05]};" part when doing that but it doesn't work... What am I doing wrong? Also I've already limited the access to addons for the zeus player but I'd also like to limit available factions and I don't know if it's possible...