# idEncounterTrigger_RaiseUserFlag

<p class="callout info">An entity used to trigger (raise a flag) for encounters.</p>

## Usage

```
entity {
	entityDef example_user_flag {
	inherit = "encounter/trigger/user_flag";
	class = "idEncounterTrigger_RaiseUserFlag";
	expandInheritance = false;
	poolCount = 0;
	poolGranularity = 2;
	networkReplicated = false;
	disableAIPooling = false;
	edit = {
		triggerOnce = false;
		spawnPosition = { // Be sure to set spawn position
			x = 1;
			y = 1;
			z = 1;
		}
		renderModelInfo = {
			model = NULL;
		}
		clipModelInfo = { // Be sure to set trigger dimensions
			clipModelName = NULL;
		}
		userFlag = "User_Flag"; // Flag Name
	}
}
}
```

Flag Triggers can activate when entering a certain section of the map or when [activateTarget](https://wiki.eternalmods.com/books/5-level-modding/page/activatetarget) for the entity is used.  
This is useful if you want to activate Energy Barriers to lock you in an arena, or if you need to enter a section of the arena for the encounter to progress.

<p class="callout info">If you only plan on triggering the User Flag through **activateTarget**, then **clipModel** dimensions would not be needed.</p>

[waitForEventFlag](https://wiki.eternalmods.com/books/5-level-modding/page/waitforeventflag) is the eventCall that this entity signals.

<p class="callout warning">The Encounter Manager must contain the **idEncounterTrigger\_RaiseUserFlag** entity for it to recognize the flag name.</p>