Destroy Object.
#1

Hey guys I have a fire system ( https://sampforum.blast.hk/showthread.php?tid=226953 ) and I tried to do that the fire will Extiguishing itself by timer and I did like that but it doesn't work:

pawn Код:
new firec;
new fire1;
new fire2;
new fire3;

    SetTimer("DestroyFireTimer", 70000, 1);

    fire1 = CreateFire(RandomSpawn[rand][0], RandomSpawn[rand][1], RandomSpawn[rand][2]);
    fire2 = CreateFire(RandomSpawn[rand][0]-2, RandomSpawn[rand][1], RandomSpawn[rand][2]+3);
    fire3 = CreateFire(RandomSpawn[rand][0]+3, RandomSpawn[rand][1], RandomSpawn[rand][2]+5);

    forward DestroyFireTimer(id);
    public DestroyFireTimer(id)
    {
     DestroyObject(Flame[id][Flame_id]);
     Flame[id][Flame_Exists] = 0;
     Flame[id][Flame_pos][0] = 0.0;
     Flame[id][Flame_pos][1] = 0.0;
     Flame[id][Flame_pos][2] = 0.0;
     DestroyObject(fire1);
     DestroyObject(fire2);
     DestroyObject(fire3);
     RemoveSmokeFromFire(id);
     DestroyFire(id);
   }
Can someone track the problem..?
Reply


Messages In This Thread
Destroy Object. - by kubeba59 - 02.01.2014, 07:23
Re: Destroy Object. - by DexterC - 02.01.2014, 07:27
Re: Destroy Object. - by kubeba59 - 02.01.2014, 07:50
Re: Destroy Object. - by kubeba59 - 03.01.2014, 12:40
Re: Destroy Object. - by Meta - 03.01.2014, 13:23
Re: Destroy Object. - by kubeba59 - 03.01.2014, 13:46
Re: Destroy Object. - by Meta - 03.01.2014, 13:53
Re: Destroy Object. - by kubeba59 - 03.01.2014, 14:50
Re: Destroy Object. - by kubeba59 - 03.01.2014, 22:09

Forum Jump:


Users browsing this thread: 1 Guest(s)