Forum Jump :

Author Message


Posts: 10
Rank:


Level: Member

Country: ro
Location:
Occupation: Student
Age: 19
In-game name: Mihai

 
#1 Posted at 2014-09-21 10:43        
     
Hello, I'm currently making a multiplayer mission and I was wondering if I could make a ready timer that appears on the screen before players can move/shoot. Once the mission starts and all players are in-game, a countdown will appear on their screen from 10 to 0, and during this time they can't do anything but can see the things around them. Thanks.

It's a nice thought to believe in a "next time". If it was a battlefield, there wouldn't be a "next time".

Author Message


Posts: 250
Rank:


Level: Member

Country: ca
Location:
Occupation:
Age:
In-game name: austinXmedic

 
#2 Posted at 2014-09-21 13:31        
     
_timer = 10;
player disableuserinput true;
while{_timer > 0} do
{
     titletext[format["Time: %1",_timer],"PLAIN"];
     _timer = _timer - 1;
    sleep 1;
};
titletext["","PLAIN"];
player disableuserinput false;

put inside init.sqf and test mission.

Some of my work:
http://steamcommunity.com/sharedfiles/filedetails/?id=287343671 -- Unit Play/ Unit Capture Functions Guide
http://steamcommunity.com/sharedfiles/filedetails/?id=265454265 -- Zeus Guide
add me on steam: austin_medic

Advertisement


Author Message


Posts: 10
Rank:


Level: Member

Country: ro
Location:
Occupation: Student
Age: 19
In-game name: Mihai

 
#3 Posted at 2014-09-21 13:59        
     
Doesn't seem to work, when I'm previewing the mission I can shoot and move right from the start. I don't have anything else in my init.sqf file

It's a nice thought to believe in a "next time". If it was a battlefield, there wouldn't be a "next time".