Scripting:TWTriggerAIEcologyFireShadow
Jump to navigation
Jump to search
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
- TWTrapAIEcology - Manage automatic spawning of AIs
- TWTriggerAIEcologySlain - notify the Ecology that a spawned AI has been slain
- TWTriggerAIEcologyDespawn - despawn slain AIs
|
|