Scripting:TWTriggerAIEcologyFireShadow

TWTriggerAIEcologyFireShadow implements an approximation of the old FireShadow behaviour where, when slain, the AI does not immediately die - instead it attempts to flee and increases speed rapidly.

This script also makes the AI drop items (fire crystals typically) and it handles despawning the AI and updating the AIEcology when the AI is removed.

Design Note Parameters

This script supports all the following arguments in the Editor -> Design Note in addition to the arguments given in the TWBaseScript and TWBaseTrigger documentation.

TWTriggerAIEcologyFireShadowRate
Type: time
Default: 1s
Once the AI has been slain, a timer is started with this rate which increases the speed of the AI every time it fires.
TWTriggerAIEcologyFireShadowSpeedup
Type: float
Default: 0.8125
The amount to multiply the AI's TimeWarp attribute by every time the timer fires. The smaller this is, the faster the speedup happens.
TWTriggerAIEcologyFireShadowMinTimewarp
Type: float
Default: 0.03
The minimum timewarp the AI can have as a result of repeated speedups.

See also


Authors

  • gravatar The Watcher [userbureaucratsysopPHRhYmxlIGNsYXNzPSJ0d3BvcHVwIj48dHI+PHRkIGNsYXNzPSJ0d3BvcHVwLWVudHJ5dGl0bGUiPkdyb3Vwczo8L3RkPjx0ZD51c2VyPGJyIC8+YnVyZWF1Y3JhdDxiciAvPnN5c29wPGJyIC8+PC90ZD48L3RyPjwvdGFibGU+]

Looking for something?

Use the form below to search the wiki:

 

Still not finding what you are looking for? Contact us so we can take care of it!