Game Development Community

What is $missionSequence? (in the mission loading code)

by John Klimek · in Torque Game Engine · 09/14/2006 (8:27 pm) · 1 replies

I'm trying to implement some of TGE's networking into TGB and while doing this I was taking a look at the TGE mission load script (eg. missionDownload.cs, etc). It seems like $missionSequence is pretty important (it's used in the transmitDataBlocks call, but I don't understand what this variable actually does.

Can anybody explain this to me?

Thanks!

#1
09/16/2006 (9:41 pm)
It's done to disambiguate mission loads. For instance, imagine I'm connecting to a server and halfway through my attempt to connect it switches levels. If I can't catch that, I'll crash or have incorrect data. So the sequence number is incremented every time a new level is loaded and prevents this sort of problem.