tsg ai totems and kill tokens
Track information about AI units and reference it after death. Example code spawns tokens per enemy type at death location that players can pick up.

Current File
Boilerplate


Totems
Variable Declaration

Poll Totems and Check Totem Owner Status

Update Totem Ownership

State Monitoring

Handle Totem Losing Ownership

Kill Tokens
Variable Declaration

Totem Configuration

Distribute Kill Tokens on Owner Death

Handle Kill Token Reset (Recursive Loop)

Poll Active Kill Tokens and Player Locations to Handle Token Pick Up

Handle Players Dropping Kill Tokens on Death

Gunball Machine
Clean Up Excess Kill Tokens and Prevent Token Pick Up as Weapon

Generate Tokens

Put Generated Kill Tokens into Play

Contributors
Last updated