Ohoy, Need help with SetTimerEx or SetTimer
#2

forward fireworks()

public OnGameModeInit()
{
SetTimer("fireworks",2000,1);//2 second looping timer
return 1;
}

fireworks()
{
//what happens when timer goes off
flare1 = CreateObject(354,X,Y,Z,0,0,0) //set X , Y, Z to cordinates you want
MoveObject(flare1,X,Y,Z+30,speed); //set speed to speed of the fireworks going up
}
Reply


Messages In This Thread
Ohoy, Need help with SetTimerEx or SetTimer - by Goobiiify - 25.10.2009, 21:08
Re: Ohoy, Need help with SetTimerEx or SetTimer - by Battleskull - 25.10.2009, 21:43
Re: Ohoy, Need help with SetTimerEx or SetTimer - by JonyAvati - 25.10.2009, 21:50
Re: Ohoy, Need help with SetTimerEx or SetTimer - by Goobiiify - 25.10.2009, 22:26
Re: Ohoy, Need help with SetTimerEx or SetTimer - by member - 25.10.2009, 22:40
Re: Ohoy, Need help with SetTimerEx or SetTimer - by Goobiiify - 25.10.2009, 23:13
Re: Ohoy, Need help with SetTimerEx or SetTimer - by Goobiiify - 26.10.2009, 01:22

Forum Jump:


Users browsing this thread: 1 Guest(s)