how can i play a sequence by trace line or just looking at a specific object or volume

how can i play a sequence just by looking at a specific object or a trigger volume
i know i must use trace line but how ?