Burning Enemies

By Postal

Intermediate

Several times I have been asked how to make a weapon set someone on fire.  So instead of continuing to shrug off these people, I have decided to make a tutorial.  This code was given to me by Necron_99 and its quite simple so this is what I’m sharing with you, I doubt that Necron would mind. 

First of all, we will make a projectile that will stick to the person and hurt them.

 

//===============================================
// BurnerProj.
//===============================================

class BurnerProj expands Projectile; 

var float HurtTime;
var float LifeTime; 
//how long it lives

 

Function Tick(float deltatime)
{