OFPEC Forum
Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting Multiplayer => Topic started by: Binary 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 :)
-
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.
-
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
-
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 (http://www.ofpec.com/COMREF/index.php?action=details&id=414&game=All) and camPreloaded (http://www.ofpec.com/COMREF/index.php?action=details&id=415&game=All). So something like:
_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.