Verse Library verse

14 Testing Pickup And Delivery Zones

Manages sequential activation and completion tracking for pickup and delivery zones in a time trial mode.

extracted-snippets/documentation/en-us/fortnite/pizza-pursuit-2-defining-the-pickup-and-delivery-zones-for-time-trial-in-verse/14-testing-pickup-and-delivery-zones.verse

# Source URL: https://dev.epicgames.com/documentation/en-us/fortnite/pizza-pursuit-2-defining-the-pickup-and-delivery-zones-for-time-trial-in-verse
# Local doc:  epic-docs/documentation/en-us/fortnite/pizza-pursuit-2-defining-the-pickup-and-delivery-zones-for-time-trial-in-verse.md
# Section:    Testing Pickup and Delivery Zones
OnBegin<override>()<suspends> : void =
SetupZones()
var PickupLevel : int = 0
loop:
if (PickupZone : base_zone = PickupZoneSelectors[PickupLevel].SelectNext[]):
PickupZone.ActivateZone()
PickupZone.ZoneCompletedEvent.Await()
PickupZone.DeactivateZone()
else:
Print("Can't find next PickupZone to select")
return
if (DeliveryZone := DeliveryZoneSelector.SelectNext[]):
DeliveryZone.ActivateZone()
DeliveryZone.ZoneCompletedEvent.Await()
DeliveryZone.DeactivateZone()
else:
Print("Can't find next DeliveryZone to select")
return

Comments

    Sign in to vote, comment, or suggest an edit. Sign in