Home   Help Search Login Register  

Author Topic: Load intro when all is ready  (Read 1553 times)

0 Members and 1 Guest are viewing this topic.

Offline Binary

  • Members
  • *
Load intro when all is ready
« on: 23 Aug 2011, 23:44:23 »
Hi all  :)

I know that this is possible - but i just can't find a working example of it..
When the mission starts, i want to black the screen, wait until all players have "loaded the world", and then play the intro. So that all players start the intro at the same time :)
"Ah.. Home sweet hell !" - Al Bundy

Offline Pirin

  • Members
  • *
Re: Load intro when all is ready
« Reply #1 on: 24 Aug 2011, 01:07:24 »
The easiest way is to just have the admin of the server hold at the map screen till everyone's "blued up", then click Continue.

Offline Binary

  • Members
  • *
Re: Load intro when all is ready
« Reply #2 on: 24 Aug 2011, 18:21:39 »
This does not solve the issue, even when all players manually have blued up, because of the difference in hardware - the world will never be loaded at the same time
"Ah.. Home sweet hell !" - Al Bundy

Offline Wolfrug

  • Addons Depot
  • Former Staff
  • ****
  • Official OFPEC Old Timer
Re: Load intro when all is ready
« Reply #3 on: 24 Aug 2011, 19:20:11 »
Not sure how it works in MP, but the preload series of commands is used in SP at least to preload cutscenes and the like, thus minimizing lag and texture/lod popping. The commands used are camPreload and camPreloaded. So something like:

Code: [Select]
_camera camPreload 60;
waitUntil {camPreloaded _camera};

and it'll wait for a maximum of 60 seconds for the scene to preload for everyone (the scene prepared by _camera, I'd imagine, so just put that in front of the camCommit).

Wolfrug out.

"When 900 years YOU reach, look as good you will not!"