TAW_Yonose 11 Posted October 14, 2013 Okey so i need to connect 10 pop-up targets to a computer where i can choose between which i want to pop up. I already got this, but dont know how to get it connecting to each others _object = _this select 0; _caller = _this select 1; _id = _this select 2; _target = _this select 3; switch (_target) do { case 1: { sniperTarget1 = true; publicVariable "SniperTarget1"; }; case 2: { sniperTarget2 = true; publicVariable "SniperTarget2"; }; case 3: { sniperTarget3 = true; publicVariable "SniperTarget3"; }; case 4: { sniperTarget4 = true; publicVariable "SniperTarget4"; }; case 5: { sniperTarget5 = true; publicVariable "SniperTarget5"; }; case 6: { sniperTarget6 = true; publicVariable "SniperTarget6"; }; case 7: { sniperTarget7 = true; publicVariable "SniperTarget7"; }; case 8: { sniperTarget8 = true; publicVariable "SniperTarget8"; }; case 9: { sniperTarget9 = true; publicVariable "SniperTarget9"; }; case 10: { sniperTarget10 = true; publicVariable "SniperTarget10"; }; }; Share this post Link to post Share on other sites
Von Quest 1163 Posted October 14, 2013 Maybe Radio Triggers? Share this post Link to post Share on other sites
Gekkibi 11 Posted October 14, 2013 Not quite sure what you want to do, but if I understood you right, with an addAction. I'm curious, why do you publicVariable the variables? I guess these controls animate? According to BIKI, both the effect and argument of animate is global. Share this post Link to post Share on other sites
TAW_Yonose 11 Posted October 20, 2013 how should i do it, if i want to connect them radio triggers then? Share this post Link to post Share on other sites
saltatormortis 12 Posted October 20, 2013 (edited) heres a video from someone: with a: targetname animate ["terc", 1] Edited October 20, 2013 by SaltatorMortis Share this post Link to post Share on other sites