A few years ago when I was messing with the Destruction cog. I used SetBinWait for the first time and the Icon remained for the wait duration. I don't have that cog anymore but this is one section of it I still have:
Code:
activated:
rank = GetInv(player, 33);
mana = GetInv(player, 14);
if(!IsInvActivated(player, 33))
{
if((mana >= 120) && (GetInv(player, 13) >= 80)) && (GetThingHealth(player) >= 25))
{
if(charge == -1)
{
if(GetInv(player, 64) != 1) ChangeInv(player, 13, -cost) && ChangeInv(player, 14, -120);
SetBinWait(player, 33, GetSoundLen(destChrgSound));
SetTimerEx(0.001, 0, 0, 0);
}
}
}
else
{
if(charge == 3)
{
call stop_power;
PlaySoundThing(destFireSound, player, 1.0, -1, -1, 0x80);
SendTrigger(-1, 333, player, rank, 0, 0);
AddDynamicTint(player, 20.0, 0.0, 0.0);
PlayKey(player, destFireAnim, 1, 0x38);
SetBinWait(player, 33, 30.0);
charge = -1;
}
}
Return;