/// <summary> /// Start fire on the entity. Stop after the entity is dead and the specified time has passed. Returns true for success /// </summary> /// <param name="entity"></param> /// <param name="timeoutAfterDeath"></param> public bool AddTimedEntityFire(Entity entity, int timeout) { if (activeEntities.Select(x => x.Entity.Handle).Contains(entity.Handle) || Function.Call<bool>(Hash.GET_PLAYER_INVINCIBLE, entity.Handle)) { return false; } activeEntities.Add(new ActiveEntity(entity, timeout)); entity.SetOnFire(); return true; }