Droopy Piles

Where to "Player Init"

2 posts in this topic

Where would I put a line from a script that specifies putting it in the "Player Init" where would I put that on the server which file and is there any format change so it loads everytime player joins server etc

So the player init as stand would look like this         null = [this] execVM "script_folder\myscript.sqf";

 

Thx in advanced

Share this post


Link to post
Share on other sites

Posted (edited)

5 hours ago, Droopy Piles said:

Where would I put a line from a script that specifies putting it in the "Player Init" where would I put that on the server which file and is there any format change so it loads everytime player joins server etc

So the player init as stand would look like this         null = [this] execVM "script_folder\myscript.sqf";

 

Thx in advanced

initPlayerLocal.sqf -- This initializes when the player joins the server.

init.sqf -- This initializes when the server starts and when a player joins the server

initServer.sqf -- this initializes only on the server when the server starts

So, you want initPlayerLocal.sqf 

Or, inside your init.sqf do this

if !(isDedicated) then
{
	//[] execVM "blah.sqf";
};

 

Edited by John

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.