You'll Know It When It Happens

You'll Know It When It Happens is a main quest in Fallout: New Vegas.

Detailed walkthrough
You will be directed to speak with Ranger Grant in order to make preparations. Speaking to him will trigger a wait period, after which it will be time for the speech. He will allow you to make a security sweep before the speech begins. If you are not in good standing with the NCR he will not give you the itinerary for the speech and you will not be allowed to unholster your weapons even if you intend to kill the sniper or engineer. You can ask him for access to all areas of the dam in order to do a proper search. At this point, you can either complete the optional objective or skip to the speech.

Optional
Investigate the area for clues. There will be no waypoints to direct you, so you must locate them manually.
 * On the second floor of the visitor center you can talk to Allison Valentine, who is looking for her engineer friend. He has been missing for several hours.
 * The engineer's blood stain can be found in the supply closet in the Hoover Dam visitor center, on first floor behind the staircase. It requires a Perception of 6 to examine.
 * Hack the computer terminal (You will need 50 Science since it's Average security) in the visitor center to discover an unauthorized access ID (Sgt. Macovitch). The terminal isn't owned so the soldiers will not shoot you.

Note: If you have Boone as a companion, when you walk up the ramp on the visitor center exterior towards Ranger Grant he'll say something about if he were the sniper, where he would shoot from. He'll tell you 3 locations (he is correct about the last two):
 * the ridge to the left of the road;
 * the tower behind the stage;
 * the roof of the Visitor's Center.

The speech
Once you speak to Ranger Grant again, the speech will begin. Kimball's vertibird, Bear Force One, will land on the roof of the Visitor Center. Grant and four Rangers will disembark, then move to the stage for the speech. In order to hear the entire speech, each assassination attempt must be dealt with quickly and covertly.

There are three different assassination attempts:
 * A bomb is placed on the vertibird by an engineer;
 * A sniper, dressed as an NCR Ranger, will appear atop the guard tower behind the stage set up for the speech;
 * A Legion soldier, disguised as an engineer, will run up to the President and try to assassinate him with a knife. (if you speak to Ranger Grant and tell him about any of the above two attempts, this is avoided).

If you received this quest from Yes Man or Mr. House, the staircase leading to the roof of the Visitor Center will be locked. However, so long as you're in good standing with the NCR and asked Ranger Grant for access to all areas, you can go up using the ladder on the outside of the building. Private Jensen will be guarding it, so an NCR disguise might be necessary to bypass him. A disguise can be found in the storage closet underneath the stairs in the visitor center. You can also talk your way past him with a Speech skill of 55. The same can happen if you have a mixed relationship with the NCR even if you attain this quest through the NCR.

Once on the roof, depending on how quickly you get up there, you may see an engineer tamper with the vertibird. "Activate" the vertibird to examine it, which will reveal that a bomb has been planted on it. An Explosives or Repair skill of 50 is required to remove it. Failing that, you'll need to get the detonator from the engineer. This can be done before or after the arrival of the sniper. He'll head into the crowd watching the speech, so you'll need to find him. He is on the left side facing the podium. The right (or left, depending on whether you are watching from the visitor center or the guard tower) engineer is the only one who will talk to you, and is the only one who won't clap. He will also move around occasionally, as noted in some cases. If you have Rex in your company he will detect the Legion engineer in the group, growling at him to point him out. Talking to the engineer will turn him hostile, thus cancelling the speech. If you have the Animal Friend perk, you can take the search dog from the Ranger in front of the Visitor Center. The dog will also sniff out the disguised engineer.

Whether or not you have been able to defuse the bomb, you still need to stop the assassin at the guard tower. You will see him throw the real guard off the guard tower and take his place, unless you're already there, in which case he'll attack both you and the real guard on the spot. If you've missed the event, there are several ways to tell if the assassin has come. First and foremost, the ranger's body will be on the ground in front of the tower. It can be examined to determine that the ranger was killed recently, but cannot be looted. Second, the assassin, though dressed similarly, has a visible face. The ranger wears a face wrap. Finally, the ranger will remain in position near the radio on the tower, while the assassin will pace back and forth. About halfway through the speech, the assassin will line up his shot, firing after a few seconds.

Finally, the Legion engineer may attempt to stab Kimball personally. This won't happen if you covertly disable the bomb, since the engineer will still try to detonate it. Assuming he does attack, kill him and the final assassination attempt will be foiled. Kimball will return to his Vertibird and depart, completing the mission.

Alternate completion methods
There are a few other methods with which you can end this quest. However, each of these methods yields a different ending to the quest. Note that, no matter which way the quest is solved (as long as NCR doesn't turn hostile on you) you will receive the following quest (if you are siding with the NCR). All of them involve cancelling or interrupting Kimball's speech.
 * You can speak to the engineer before the vertibird even lands; he will respond aggressively, and you can lead him to attack by expressing your suspicions and offering to call the MPs or take him away yourself. Kill him and the speech is canceled, the vertibird leaves, and the quest completes, even though Grant won't talk to you. The vertibird at least needs to be visible for this to work, as the engineer will simply respond as any other engineer would prior to its appearance.
 * You can report the existence of either the bomb or the assassin to Grant, provided you've dealt with one or both already. You don't need to disarm the bomb to report it in, merely find it, but you will need to kill the assassin to report him in. Once reported, Grant will cancel the speech and usher Kimball to safety by various means.
 * If you deal with the sniper and report the bomb in, it will trigger a scripted event where the engineer attempts to stab Kimball, only to be dispatched by the Rangers.
 * Disabling the bomb and reporting it without getting rid of the assassin will cause him to take a shot at Kimball, only to miss and hit a Ranger instead. Kimball will flee to safety. This is an easy way to obtain the NCR Ranger combat armor, provided you're sneaky enough to loot it without being seen. The NCR soldiers will turn hostile if they catch you. You can also use an NCR disguise to get on stage without suspicion.
 * Reporting the assassin without disabling the bomb will cause Grant to sweep the area again, causing him to find the bomb and defuse it. The engineer will also try to kill Kimball, so be ready to kill him first.
 * If you talk to the assassin on the tower after he pushes the ranger off, you can question him about it. He will then suggest going down there, but if you tell him not to, he will turn hostile and you can kill him. After that, if you report to Ranger Grant via the radio on the tower, tell him what happened and he will evacuate the president. As long as you haven't completed the optional objective with the dead engineer, the engineer won't stab Kimball and the bomb won't go off. Kimball will then fly off and the quest will mark complete. This can be done even if you haven't defused the bomb.
 * You can pickpocket the engineer and steal the redundant failsafe detonator that he has in his pocket. After that you can show your finding to Grant. He will send two rangers to arrest the engineer. Engineer will take a knife and kill one of the rangers another will shoot him dead. The speech will be cancelled, quest will be successfully resolved.

Behind the scenes

 * After killing the Legion sniper on the guard post and using the radio to report to Grant, one of the dialog options ("Everything's fine up here, thank you. How are you?") is a reference to dialog said by Han Solo from Star Wars Episode IV: A New Hope when he and Luke Skywalker are saving Princess Leia from the Death Star and are questioned by Imperials over the intercom.
 * A majority of this quest was implemented by Charlie Staples.
 * The name is a reference to a song by the popular singer Frank Sinatra, "You'll Know When It Happens" (without the first "it"), like many other quests in New Vegas.

Bugs

 * President Kimball and his escorts sometimes fail to board the vertibird for departure, regardless of the method of quest completion. They will either stand next to the vertibird, or mysteriously explode within the Visitor's Center.
 * One confirmed solution is to pickpocket the engineer and immediately turn in the detonator to Ranger Grant, without doing anything else.
 * Another solution is to speak with Grant to begin the vertibird arrival, then go to the roof and assassinate the engineer without being seen (otherwise the NCR will become hostile). The vertibird will land and immediately take off. You will not be able to report to Grant, but the quest will be flagged as complete.
 * Yet another solution is to ignore the Engineer initially. Instead, discover the Legion sniper and go to the tower to talk to him and expose him. Use the radio to report to Grant. You have plenty of time to run back to the stairs leading up to the Visitor's Centre and intercept the engineer as he runs down to attack the President. Once the engineer is killed, just wait for the President and his security detail to go up to the vertibird via the exterior ladder, and fly off. You do not need to have personally discovered the bomb on the vertibird (which should have presumably been placed), recovered the detonator from the Engineer's body, nor make additional reports to Grant. This is possibly the intended solution if someone has a limited reputation with the NCR and cannot go up to the vertibird landing pad without making the NCR hostile.
 * Sometimes, even though you start the quest by speaking with Grant, after you investigate the closet and check the terminal, going up onto the observation deck will not trigger the Vertibird landing and Ranger Grant will not initiate dialog any more.
 * Note: If you are unable to find Ranger Grant on the roof of the observation deck, sometimes he may be found waiting by the Visitor's Center staircase outside. If this happens you must revert to a previous save from before entering the building and speaking to Colonel Moore.
 * If you start Wild Card: Finishing Touch after starting this quest, you won't be able to talk to Ranger Grant (only one dialog option - Goodbye) and thus unable to start the event. Your only option is to finish Finishing Touch and let the president die.
 * This bug can be fixed in the console. Select Ranger Grant in the console or type and hit enter. Then type  hit enter, and type . He will be reset and start talking to your character. It may be required to disable and wait several hours then re-enter  and.
 * If you approach him from behind also seems to fix this bug, as it makes him start the conversation.
 * Shooting either him or an NCR ranger near him will cause him to run back to the Vertibird. His security will open fire on you, but will stop if you move so far away. Kimball will leave in his vertibird, and the legion dressed as an NCR engineer will be gunned down as he tries to attack Kimball. Within a few seconds after his departure, you will have completed the mission.
 * Though there are three assassination attempts, not all of them may be triggered during the quest. The bomb on the Vertibird will usually go off unless you deal with it, but the sniper and assassin in the crowd may not act.
 * If you disarm the bomb on the vertibird and then immediately run to the tower where the sniper spawns, climbing the ladder to the top of the tower may initiate the following sequence. When you reach the top, you will hear the scream of someone falling, but the Ranger sniper is still there alone and fine. If you wait through the speech on the tower with the Ranger sniper, nothing happens until the very end of the speech where a shot will ring out, President Kimball will disappear, the Ranger sniper on the tower (next to you) will disappear, and you will fail the quest (the only dialogue option when talking to Colonel Moore afterward is to tell her that the President was killed by a sniper).
 * If President Kimball finishes his speech and successfully makes his way back up to his vertibird, he may start walking endlessly against the ledge of the roof of the visitor center away from the vertibird, and never leave. To fix this, talk to Ranger Grant regarding the bomb or the sniper, and this will initiate the escape sequence for President Kimball, forcing him to depart in his vertibird.
 * After killing the sniper, report back to Ranger Grant. His first dialogue will be normal but his second sounds like it's coming through an intercom.
 * If you can't speak to Colonel Moore after finishing this mission type and you'll get the Eureka! mission.
 * Note that this command does not complete the quest Wild Card: Finishing Touches if you type it before taking the quest. If so, president Kimball will be considered dead for the game. Retyping it makes no change in the presidents status whatsoever.
 * If you can't speak to Colonel Moore after saving President Kimball, open the console with ~ and type This will allow you to tell the Colonel the President is safe.
 * If you receive the quest from the NCR quest line, you can request Ranger Grant to have full access, and it should be granted. As soon as you're ready to start up the quest, go outside and speak with Grant and tell him you're finished preparing. Immediately go onto the roof of the building, there should be a couple of NCR troops awaiting the President, and one engineer leaning against the side of the doorway leading to the visitor area. If you have a good sneak skill, you can hide on the other side of the wall. After the vertibird lands, and the closest NCR troop goes downstairs, the assassin in disguise will start walking toward the back of the vertibird. If you're hidden and you use a silenced weapon, you can kill the assassin before he places the bomb. This will cause everyone in the crowd to panic, as well as the President when he exits. A short time later, he should take back off and it will say that you successfully finished the quest.
 * It is possible that before reporting to the Ranger for the first time, many members of the audience will be stripped bare of all of their clothing and will stand there in their underwear during the speech.
 * Sometimes the Engineer glitches and never runs towards the stage: the mission is still accomplished and you may see the Engineer still 'watching' the speech later on in the game.
 * The PS3's lockup bug where the machine freezes up after extended periods in the open wasteland is especially prevalent during this quest. Simply restart the machine and reload the autosave and re-attempt the quest to get around this.
 * When you try to pickpocket the engineer and take his detonator and keys, without disabling the bomb in the President's vertibird, it still would explode. even after you protect the President from the sniper and the assassin. the trick of this glitch is to kill the engineer right after the vertibird landed, causing the President to flee safely before he is able to start his speech.
 * When you start the quest talk to Ranger Grant outside tell him you are ready then run up to the tower behind the stage climb the ladder then climb down and it should say quest completed.
 * It is possible that Kimball's Vertibird may land and then suddenly take off. After this, the quest will be rendered complete without you having to stop any assassination attempts.
 * After initiating the dialog where Ranger Grant tells you to get some rest before the President arrives, the game may crash after fading out. (Possible fix) Wait to a certain time (i.e. 10:00 PM) then talk to Ranger Grant to proceed with the quest. (Waiting until 10PM confirmed fix on PC) (Possible fix) Wait multiple one-hour increments. If waiting is disabled, find a bed and sleep in one-hour increments.
 * When the Vertibird is flying to come over to the base to land. Press X and you'll complete the quest without having to protect him.
 * It is possible that when climbing the ladder to the tower with the sniper assassin while having ED-E as a companion, that all NCR troops will become hostile to ED-E. Easily fixed by telling ED-E to go back to the Lucky 38 with the latest patch since it will despawn him on the spot. This also forced the rangers to evacuate the President and complete the mission.
 * Sometimes the Legion engineer won't attempt to stab Kimball.
 * It is possible to encounter Grant outside the Hoover Dam area when he gives this quest, such as Black Mountain, causing it to fail instantly after being taken (since the Courier is not allowed to leave the Dam area). On PC, this can be avoided by traveling to the Dam and using console commands to bring Grant to the player before starting the quest.
 * When the engineer rushes to stab Kimball, attempting to kill him before the Ranger dies will cause Kimball to glitch and continuously run in place. This makes him unable to retreat back to his Vertibird and the quest impossible to complete, forcing the player to reload the save.