Why periodicevent in CDK often don't work

I want to set a respawn interval. Every 180s, players will get 60s respawn window. So i use different trigger to set initmission and periodicEvent.

At the beginning of mission, the spawn point would first be able for 60s. After 180s, The point would be removed and then reintroduce in to the game. After 60s, point would be disable again. Then Another 180s

But it doesn’t work properly. It only reintroduce once, and never twice.

Another question: why 2 spawn point doesn’t show on map, even if i choose Showonmap (it can still respawn by using column). But all other spawn point shows.

The mission link: WT Live // Mission by Satlin

periodicEvent works just fine, it works like this, “start actions after X seconds”.
Here how i make cycling spawn point
testspawn.blk (3.7 KB)

And about not appearing spawn points, you set the disableAfter to “-1”, so that probably why.

I also recommend checking all actions that you are using in CDK Mission Editor: Triggers - War Thunder Wiki
because removeAreas parameter is broken and those nothing XD

1 Like

it did great help. I misunderstand the periodicEvent. I saw you use wait and trigger enable to create the loop.

1 Like

you can also use the enableAfterComplete check box to loop the trigger.

I found “triggeractivate” is the action that can actually create the loop.

It really dippeds on what you are trying to do, for example
{
enableAfterComplete ON

periodicEvent 1

uniteWhenStatus
Tank1
Is killed

unitRestore
Tank1
}
This will each second check if Tank1 is killed, and if it is, it will Respawn it.