# Source URL: https://dev.epicgames.com/documentation/en-us/uefn/change-a-players-point-of-view-with-cameras-in-unreal-editor-for-fortnite
# Local doc: epic-docs/documentation/en-us/uefn/change-a-players-point-of-view-with-cameras-in-unreal-editor-for-fortnite.md
# Section: Tracking the Player and Granting Items
# Unregister the Agent with the FireTrigger when they leave the DoorVolume.
OnPlayerExitsVolume(Agent:agent):void=
Logger.Print("Agent exited DoorVolume")
FireTrigger.Unregister(Agent)
# Cancel the subscription to the FireSubscription.
if (SubscriptionToCancel := FireSubscription?):
SubscriptionToCancel.Cancel()
Verse Library
verse
13 Tracking The Player And Granting Items
Processes player exit from a trigger volume by canceling active event subscriptions.
extracted-snippets/documentation/en-us/uefn/change-a-players-point-of-view-with-cameras-in-unreal-editor-for-fortnite/13-tracking-the-player-and-granting-items.verse