Jump to content
Sign in to follow this  
3l0ckad3

Make initplayerlocal.sqf wait till player spawns to run..

Recommended Posts

How do I make the initplayerlocal.sqf wait till the player spawns to run ? I have an intro in it amongst other things and loading in seems to happen at different times for the person and other people of course relating to their machine specs.
Any help would be highly appreciated.

Cheers :)


Edit: How to run this syntax if it is right ?
 

{player == player}

or 
 

 if (Player == player) then {

};

 

Share this post


Link to post
Share on other sites

I use this in my mission:

waitUntil {alive player};
  • Like 1

Share this post


Link to post
Share on other sites

initPlayerLocal assures that the player object exists so he most certainly is spawned. Either do

waitUntil {time > 0}; // mission has started

Or set a publicVariable on the server and wait for that on the clients

  • Like 1

Share this post


Link to post
Share on other sites

Sweeeeet! Thank you both! Spamming you with free virtual beer!

What would it be for a dedicated server, or would it be fine ?
I make missions for me and my friends, plus my unit in which it would have to work on a dedi environment.

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
Sign in to follow this  

×