To understand the event "Pamela waved goodbye.", it is important to know that The use of the word "goodbye" tells us that either Pamela or her observer(s) was/were leaving.