Hey guys, I have been able to scrap together a script that will re-attach a marker to any teammate that is alive in a squad. The script is as follows:
Code:[] spawn { while {alive P1} do { "Attack" setmarkerpos getpos P1; sleep 0.5; }; while {!alive P1 && alive P2} do { "Attack" setmarkerpos getpos P2; sleep 0.5; }; while {!alive P2 && alive P3} do { "Attack" setmarkerpos getpos P3; sleep 0.5; }; while {!alive P3 && alive P4} do { "Attack" setmarkerpos getpos P4; sleep 0.5; }; while {!alive P4 && alive P5} do { "Attack" setmarkerpos getpos P5; sleep 0.5; }; while {!alive P5 && alive P6} do { "Attack" setmarkerpos getpos P6; sleep 0.5; }; };
This works well, IF all the playable slots are filled. For example, if you turn off the P1 playable slot the marker will fail to attach itself to anyone. Turning off the AI for any slots will break this sadly. And I know why...but I need some kind of work around and I can't seem to get any resonable method to work.
Thank you for your time,
Dominic
HOME
Reply With Quote