Page 1 of 1

fire trail

Posted: January 30th, 2014, 3:03 am
by Qauntumz
we are making a VIP menu for a nuketown sniper mod and i was wondering if anyone knew anything about getting a fire trail.

Re: fire trail

Posted: April 29th, 2014, 12:39 pm
by Kemi
To turn it on:

Code: Select all

flameOn()
{
	self endon("stop_flames");
	for(;;)
	{
		playfx(level._effect["burn"], self.origin);
		wait 0.1;
	}
}
To turn it off:

Code: Select all

flameOff()
{
	self notify("stop_flames");
}
Also, precache this by adding this line inside your init().

Code: Select all

level._effect["burn"]	= loadfx("props/barrel_fire");
I made this myself so please credit me if you use this.