Jump to content
Kleine Bea

Sleep funtion doesnt work

Recommended Posts

   result = ["Message","Header",nil,true] spawn BIS_fnc_guiMessage;                   
   sleep 2;  removeBackpack player;  
   player addBackpack "B_Parachute";  
   player setPos [getPos player select 0, getPos player select 1, (getPos player select 2) +200]; 

Hey i would like to post this in the trigger but a error comes, there is a problem with sleap :S someone know ?

Share this post


Link to post
Share on other sites
[_var1,_var2] spawn
{
   params["_var1","_var2"];
   hintSilent format["This is VAR1: %1, This is VAR2: %2",_var1,_var2];
   sleep 0.5;
};

q note:

whenever using spawn you'll need to pass any variables to spawn before you can use them in that scope.

 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×