idEncounterTrigger_Exit
An entity used to end an encounter manager
Usage
entity {
entityDef example_trigger_exit {
inherit = "encounter/trigger/exit";
class = "idEncounterTrigger_Exit";
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;
}
soundOcclusionBypass = true;
forceAIToFlee = true; // Set to true if you want all AI to despawn once this is triggered
}
}
}
Simply entering the trigger's volume will abruptly end the encounter manager if it has this entity added to it in the exitTriggers section.
Be sure to use exit triggers to despawn remaining AI when scripting brand new encounters.
No Comments