https://thief.starforge.co.uk/index.php?title=Scripting:TWTriggerAIEcologyDespawn&feed=atom&action=historyScripting:TWTriggerAIEcologyDespawn - Revision history2024-03-29T10:26:46ZRevision history for this page on the wikiMediaWiki 1.39.6https://thief.starforge.co.uk/index.php?title=Scripting:TWTriggerAIEcologyDespawn&diff=971&oldid=prevThe Watcher at 17:34, 22 June 20202020-06-22T17:34:28Z<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 17:34, 22 June 2020</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1">Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>TWTriggerAIEcologyDespawn is a script that despawns slain AIs, generally ones spawned by [[Scripting:TWTrapAIEcology|TWTrapAIEcology]] and it informs the AIEcology that the AI has been despawned. Use this script to remove AI corpses that would normally remain on the map so that the game can reuse the object ID.</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>TWTriggerAIEcologyDespawn is a script that despawns slain AIs, generally ones spawned by [[Scripting:TWTrapAIEcology|TWTrapAIEcology]] and it informs the AIEcology that the AI has been despawned. Use this script to remove AI corpses that would normally remain on the map so that the game can reuse the object ID.</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>If an AI despawns itself - that is, it doesn't leave a visible corpse - you should use [[Scripting:<del style="font-weight: bold; text-decoration: none;">TWTrapAIEcologySlain</del>|<del style="font-weight: bold; text-decoration: none;">TWTrapAIEcologySlain</del>]] to update the AIEcology instead of this script, as the AI may despawn before this script updates the AIEcology.</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>If an AI despawns itself - that is, it doesn't leave a visible corpse - you should use [[Scripting:<ins style="font-weight: bold; text-decoration: none;">TWTriggerAIEcologySlain</ins>|<ins style="font-weight: bold; text-decoration: none;">TWTriggerAIEcologySlain</ins>]] to update the AIEcology instead of this script, as the AI may despawn before this script updates the AIEcology.</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
</table>The Watcherhttps://thief.starforge.co.uk/index.php?title=Scripting:TWTriggerAIEcologyDespawn&diff=970&oldid=prevThe Watcher: Created page with "TWTriggerAIEcologyDespawn is a script that despawns slain AIs, generally ones spawned by TWTrapAIEcology and it informs the AIEcology that the AI..."2020-06-22T17:33:48Z<p>Created page with "TWTriggerAIEcologyDespawn is a script that despawns slain AIs, generally ones spawned by <a href="/wiki/Scripting:TWTrapAIEcology" title="Scripting:TWTrapAIEcology">TWTrapAIEcology</a> and it informs the AIEcology that the AI..."</p>
<p><b>New page</b></p><div>TWTriggerAIEcologyDespawn is a script that despawns slain AIs, generally ones spawned by [[Scripting:TWTrapAIEcology|TWTrapAIEcology]] and it informs the AIEcology that the AI has been despawned. Use this script to remove AI corpses that would normally remain on the map so that the game can reuse the object ID.<br />
<br />
If an AI despawns itself - that is, it doesn't leave a visible corpse - you should use [[Scripting:TWTrapAIEcologySlain|TWTrapAIEcologySlain]] to update the AIEcology instead of this script, as the AI may despawn before this script updates the AIEcology.<br />
<br />
<br />
== Design Note Parameters ==<br />
<br />
This script supports all the following arguments in the <code>Editor -> Design Note</code> in addition to the arguments given in the [[Scripting:TWBaseScript|TWBaseScript]] and [[Scripting:TWBaseTrigger|TWBaseTrigger]] documentation.<br />
<br />
; <code>TWTriggerAIEcologyDespawnRate</code><br />
: '''Type''': [[Scripting:Design_Note#time|time]]<br />
: '''Default''': <code>2m</code><br />
: This is the delay between an AI being slain and each attempt to despawn the AI. If the AI is visible, and <code>TWTriggerAIEcologyDespawnVisible</code> is <code>false</code>, the AI is not despawned and the script waits for this period before trying again. <br />
<br />
; <code>TWTrapAIEcologyDespawnVisible</code><br />
: '''Type''': [[Scripting:Design_Note#bool|boolean]]<br />
: '''Default''': <code>false</code><br />
: If set to true, no visibility checks are done on when despawning slain AIs, and they will be despawned even when they are on screen.<br />
<br />
== See also ==<br />
* [[Scripting:TWTrapAIEcology|TWTrapAIEcology]] - Manage automatic spawning of AIs<br />
* [[Scripting:TWTriggerAIEcologySlain|TWTriggerAIEcologySlain]] - notify the Ecology that a spawned AI has been slain<br />
* [[Scripting:TWTriggerAIEcologyFireshadow|TWTriggerAIEcologyFireshadow]] - Fire Shadow-like behaviour support<br />
<br />
{{Scripting:Navbox}}<br />
{{:Site Navigation}}<br />
<references /></div>The Watcher