(ORLANDO SENTINEL) — The former University of Central Florida student who killed himself in a dorm room early Monday had planned to kill others but apparently changed his mind and took only his own life, police said.

The deceased, identified as James Oliver Seevakumaran, 30, was found in his dorm room in Tower 1, a seven-story structure near the UCF Arena.

UCF Police Chief Richard Beary said writings found in the student’s room indicated “there was a planned attack.”

Officers found an assault weapon, a handgun and, in a backpack, handmade explosives when they searched the man’s room. The assault rifle had a magazine capable of holding 28 bullets, officials said.

“It could have been a very bad day for everyone here,” Beary said.

Note: Read our discussion guidelines before commenting.