Hi,
Thanks for your prompt reply Wolfrug.
That's it for the script there's no more to it. Unfortunately removing the Exitwith just yields the same result, the FPS takes a massive hit. However, the code you inserted into this script did help me out in solving the problem.
while {true} do
{
if ((soldier distance (Tank) < 200)) then
{
sleep 0.2 + random 0.3;
Null = [Tank] execVM "Fire.sqf";
};
if ((soldier distance (Tank) > 200)) exitwith {};
};
Doing it like this works great and there's no FPS loss at all, I tried without the "{}" and also without the "Exitwith", but I either got errors or a loss of FPS. I don't know if this code is a crude way of doing it but it seems to work.
Cheers mate.
Turk.
EDIT... I've just done some more testing and I'm still getting a big hit on FPS, funny it seemed to work the first time I tried it. I'll play some more.!