Smelling is one of the trickiest senses to translate from the real to the virtual world. There are several techniques, but most of them are inclined to use colliders or graph logic.
Smelling can be simulated by computing a collision between an agent and odor particles, scattered throughout the game level.