Unfortunately, they are still just standing around doing nothing.
A fragment from my map, where 2 elementals are fighting.
function BattleThread()
while (true) do
if (IsObjectExists("elemF")) then
PlayObjectAnimation("elemF", "attack00", ONESHOT);
end
sleep(random(10)+5);
if (IsObjectExists("elemW")) then
PlayObjectAnimation("elemW", "attack00", ONESHOT);
end
sleep(random(10)+5);
end
end
startThread (BattleThread);Where elemF and elemW are the script names of the creatures. If you don't know, click on the desired unit in the editor, and in the menu on the left, in the Name line (or something similar), give it a name; use this name in the function above.