Jump to content
Sign in to follow this  
iceman77

2 sided briefing

Recommended Posts

I've searched for "MP briefing","2 sided briefing", "two sided briefing", "multi sided briefing" here on this forum with no luck. Months ago this would have been a trivial task for me, but I've been away from the game for awhile and I'm coming up with blanks. How do I make a 2 sided briefing, for west & east? Even a faction based briefing would be okay.

Also, what command(s) do I need to include in the briefing to work properly on a dedicated sever? I've made a simple single player briefing, but I know it needs to be ran either !isServer or isServer.. or something to that effect.

regards,

David

Share this post


Link to post
Share on other sites

In your init.sqf:

[] execVM "breifing.sqf";

breifing.sqf

switch (true) do 
{
case (side player == west) : 
{
	task1 = player createSimpleTask ["task"];
	task1 setSimpleTaskDescription ["task","task","task"];
	_diary = player createDiaryRecord ["Diary", ["Information", "Diary"]];
};
case (side player == east) : 
{
	task1 = player createSimpleTask ["task"];
	task1 setSimpleTaskDescription ["task","task","task"];
	_diary = player createDiaryRecord ["Diary", ["Information", "Diary"]];
};
};

Share this post


Link to post
Share on other sites

You're welcome ;)

You could also add a check for a dedi server:

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

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  

×