<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mygamingtalk.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Pre-Scripted_Regions</id>
	<title>Pre-Scripted Regions - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mygamingtalk.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Pre-Scripted_Regions"/>
	<link rel="alternate" type="text/html" href="https://mygamingtalk.com/wiki/index.php?title=Pre-Scripted_Regions&amp;action=history"/>
	<updated>2026-04-09T21:09:04Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://mygamingtalk.com/wiki/index.php?title=Pre-Scripted_Regions&amp;diff=1471&amp;oldid=prev</id>
		<title>Palota: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://mygamingtalk.com/wiki/index.php?title=Pre-Scripted_Regions&amp;diff=1471&amp;oldid=prev"/>
		<updated>2023-02-13T07:02:33Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 07:02, 13 February 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Palota</name></author>
	</entry>
	<entry>
		<id>https://mygamingtalk.com/wiki/index.php?title=Pre-Scripted_Regions&amp;diff=1470&amp;oldid=prev</id>
		<title>Palota: /* DisableBotPush */</title>
		<link rel="alternate" type="text/html" href="https://mygamingtalk.com/wiki/index.php?title=Pre-Scripted_Regions&amp;diff=1470&amp;oldid=prev"/>
		<updated>2021-07-14T10:55:23Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;DisableBotPush&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{process header&lt;br /&gt;
 | title    = Pre-Scripted Regions&lt;br /&gt;
 | section  =&lt;br /&gt;
 | previous = [[Omni-Bot_Map_Scripting | Omni-Bot_Map_Scripting]] &lt;br /&gt;
 | next     = &lt;br /&gt;
 | shortcut =&lt;br /&gt;
 | notes    =&lt;br /&gt;
}}&lt;br /&gt;
{{TOCright}}&lt;br /&gt;
&lt;br /&gt;
In 0.8 there are several pre-scripted region triggers. They are defined in file &amp;#039;&amp;#039;et/scripts/et_regiontriggers.gm&amp;#039;&amp;#039;. Therefore you don&amp;#039;t need to define every trigger in &amp;quot;global Map&amp;quot;. You just add one line to &amp;quot;OnMapLoad&amp;quot;. The only exception to this is the &amp;quot;VehicleTrigger&amp;quot;, see [[Vehicle Trigger Regions]] from more details.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
OnTriggerRegion(AABB(0,0,0,1,1,1), RegionTrigger.DisableBotPush); //trigger without a name&lt;br /&gt;
RegionTrigger.Create(AABB(0,0,0,1,1,1), &amp;quot;DisableBotPush&amp;quot;, &amp;quot;Ladder_Around_CP&amp;quot;); //trigger with a name&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(0,0,0,1,1,1) are just example coordinates which should be replaced with actual AABB coordinates as explained in the [[Trigger regions]] page.&lt;br /&gt;
&lt;br /&gt;
== DisableBotPush ==&lt;br /&gt;
&lt;br /&gt;
This will disable bots from pushing within the trigger area. It also disables combat movement. Useful at leaders or narrow bridges where bots can fall down.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
OnTriggerRegion(AABB(0,0,0,1,1,1), RegionTrigger.DisableBotPush);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== DisableCombatMovement ==&lt;br /&gt;
&lt;br /&gt;
This will disable the bots combat movement within the trigger area. Useful in areas where moving from side to side can result in the bot getting killed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
OnTriggerRegion(AABB(0,0,0,1,1,1), RegionTrigger.DisableCombatMovement);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== BreakableDistance ==&lt;br /&gt;
&lt;br /&gt;
This turns on the bots ability to shoot breakable objects within the trigger area.  Useful if a map contains many breakable objects but you only require bots to break objects in a certain area. The parameter MinBreakableDist should be same as bot.TargetBreakableDist in OnBotJoin.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
OnTriggerRegion(AABB(0,0,0,1,1,1), RegionTrigger.BreakableDistance);&lt;br /&gt;
RegionTrigger.BreakableDistance.MaxBreakableDist = 200; //TargetBreakableDist when a bot enters the region&lt;br /&gt;
RegionTrigger.BreakableDistance.MinBreakableDist= 0;   //TargetBreakableDist when a bot exits the region&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== KillTrigger ==&lt;br /&gt;
&lt;br /&gt;
Any bot that enters the trigger area will self kill. The main purpose of this is for when bots end up in an area that they are unable to escape from.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
OnTriggerRegion(AABB(0,0,0,1,1,1), RegionTrigger.KillTrigger);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== IntrusionWarning ==&lt;br /&gt;
&lt;br /&gt;
When an attacking player (human or bot) enters this region, a defending bot will use a voicechat warning. You must set Map.DefendingTeam.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
OnTriggerRegion(AABB(0,0,0,1,1,1), RegionTrigger.IntrusionWarning);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== IntrusionWarningEngObj ==&lt;br /&gt;
&lt;br /&gt;
When an attacking Engineer (human or bot) enters this region, a defending bot will use a voicechat warning. You must set Map.DefendingTeam.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
OnTriggerRegion(AABB(0,0,0,1,1,1), RegionTrigger.IntrusionWarningEngObj);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== AllClear ==&lt;br /&gt;
&lt;br /&gt;
When defending bot enters this region and can&amp;#039;t see any enemy, he will use a voicechat. You must set Map.DefendingTeam.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
OnTriggerRegion(AABB(0,0,0,1,1,1), RegionTrigger.AllClear);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== VehicleTrigger ==&lt;br /&gt;
&lt;br /&gt;
This is used to detect when a vehicle enters the AABB Trigger area.  This will send a message to the console (needs &amp;quot;/bot debugtrigger&amp;quot; on to see) saying the vehicle name &amp;quot;at location&amp;quot;, this can then be used as a standard trigger.&lt;br /&gt;
This is more detailed on the [[Vehicle Trigger Regions]] page.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
OnTriggerRegion(AABB(0,0,0,1,1,1), RegionTrigger.VehicleTrigger);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Palota</name></author>
	</entry>
</feed>