This can be used in a variety of ways. One of the methods we employ is when the player is "interacting" with a computer console. The console is set dynamic and the script is created, showing the huds and going through the motions. At the end of the script, we have the "activateifused=1" in the script, and that will activate the name of the item we place in the IfUsed field of the entity.
Breakdown of my explanation...
1. Player approaches a computer console and there is some interaction with huds.
2. At the end of the interaction, the script for the console runs the "activateifused=1" command, which will spawn the "key" entity I have in the map. The name "key" is put in the IfUsed field of the computer console.
3. In the key entity, I set the spawn at start to No. When the console activates the key, the key appears.
Hopefully I have given an easy example.

Twitter: @NFoxMedia