It does have to be in each event, which is because each event is separate in terms of execution.
If you are using GMS2/GMS2.3, you can make a macro for that entire line for easier entry.