Jump to content
Sign in to follow this  
Vaikless

Zeus Restrictions - Cost for Remote Control possible?

Recommended Posts

Hi all,

I want my Curator "mycurator" to only spawn listed units - That i already accomplished..

BUT i also want him to be able to remote control his spawned units. - That part is my problem

Any idea how? he can still use ARES... maybe there is a third party way to remote control with zeus?!

I used this code for my init.sqf:

myCurator addEventHandler [

"CuratorObjectRegistered",

{

_classes = _this select 1;

_costs = [];

{

_cost = switch (_x) do

{

case "isc_is_sapper_o" : {

[true,0.15]

};

case "isc_is_squad_leader_o": {

[true,0.1]

};

case "isc_is_grenadier_o": {

[true,0.1]

};

case "isc_is_rifleman_o": {

[true,0.05]

};

case "isc_is_militaman_o": {

[true,0.025]

};

case "isc_is_machinegunner_o": {

[true,0.1]

};

case "isc_is_sniper_o": {

[true,0.1]

};

case "isc_is_at_o": {

[true,0.2]

};

case "isc_is_offroad_M2_o": {

[true,0.15]

};

case "isc_is_hilux_M2_o": {

[true,0.15]

};

case "isc_is_hilux_SPG9_o": {

[true,0.25]

};

case "isc_is_LR_M2_o": {

[true,0.15]

};

case "isc_is_UAZ_M2_o": {

[true,0.15]

};

case "isc_is_T55_o": {

[true,1]

};

case "isc_is_MK19_TriPod_o": {

[true,0.15]

};

default {

[false,0]

};

};

_costs = _costs + [_cost];

} forEach _classes; // Go through all classes and assign cost for each of them

_costs

}

];

Thx a lot for your time

---------- Post added at 21:03 ---------- Previous post was at 19:37 ----------

Got it:yay:

case "ModuleRemoteControl_F": {

[true,0.35]

};

One can find the 'names' of Curator Stuff here: https://community.bistudio.com/wiki/Arma_3_CfgPatches_CfgVehicles

thx and i hope this will help someone with a similar problem

Share this post


Link to post
Share on other sites

hey, i want to my curator spawn a listed items too, but i can't figure how to use your script, can you please help me? when i replace yours class names by, for example "B_soldier_F" don't works. just the line "default { [false,0] };" is ejecuted, the "else" don't, thx.

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  

×