Hi !
Im trying to interpret the Goldrush script and spawn entities.
When allies steal tank, the function “allies_steal_tank” is called. (See Goldrush script, around line 90.) This function has the following three lines: “alertentity tankdepot_axis_spawn” (the axis’ red spawn box in tank depot room), “alertentity tankdepot_allied_spawn” (the allies spawn box in the same room) and “alertentity tankdepotblob” (the yellow entity, in tank spawn room).
What is this “alertentity”? What is it doing?
The next two lines are: “setautospawn ‘Axis spawn’ 0” and “setautospawn ‘Tank depot’ 1”. Those lines I understand. They stop axis from spawning there (in the tank depot room) and allows allies to spawn there.
What I want to understand is how the script works, when the new spawnpoints are set for the two teams, when critical events take place (like the tank has been stolen, a wall has been breached or something similar).
Thanks in advance
// Loffy

