Navigation
API > API/Plugins > API/Plugins/ZoneGraphAnnotations > API/Plugins/ZoneGraphAnnotations/Annotations > API/Plugins/ZoneGraphAnnotations/Annotations/UZoneGraphDistur-
References
| Module | ZoneGraphAnnotations |
| Header | /Engine/Plugins/Runtime/ZoneGraphAnnotations/Source/ZoneGraphAnnotations/Public/Annotations/ZoneGraphDisturbanceAnnotationBPLibrary.h |
| Include | #include "Annotations/ZoneGraphDisturbanceAnnotationBPLibrary.h" |
| Source | /Engine/Plugins/Runtime/ZoneGraphAnnotations/Source/ZoneGraphAnnotations/Private/Annotations/ZoneGraphDisturbanceAnnotationBPLibrary.cpp |
UFUNCTION (BlueprintCallable, Category="ZoneGraphAnnotations",
Meta=(WorldContext="WorldContextObject"))
static void TriggerDanger
(
UObject * WorldContextObject,
const AActor * Instigator,
const FVector Position,
const float Radius,
const float Duration
)
Remarks
Triggers Danger event at specific location.
Parameters
| Name | Description |
|---|---|
| Instigator | (optional) identifies this event coming from specific Instigator, only one danger will persist per instigator. |
| Position | Position of the danger. |
| Radius | Radius of the danger. |
| Duration | Duration of the danger. |