Skip to content

Commit

Permalink
Added briefings.sqf to the scripts folder. Uncomment a line in initPl…
Browse files Browse the repository at this point in the history
…ayerLocal to use it.

Commented out the XPTBriefings by default.
Bumped the version number to 0.4.2.
  • Loading branch information
Superxpdude committed May 28, 2019
1 parent c675fff commit bf37f45
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 2 deletions.
3 changes: 3 additions & 0 deletions config/XPTBriefings.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

class briefings
{
// Uncomment the briefings below if you intend to use them for your mission.
/*
class assets // Example assets briefing. Should include a list of all friendly vehicle assets available.
{
category = "Diary";
Expand All @@ -43,4 +45,5 @@ class briefings
onStart = 1;
sides[] = {0,1,2,3};
};
*/
};
5 changes: 4 additions & 1 deletion initPlayerLocal.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ params ["_player", "_jip"];
// Call the template initPlayerLocal function
_this call XPT_fnc_initPlayerLocal; // DO NOT CHANGE THIS LINE

// Add any mission specific code after this point
// Add any mission specific code after this point

// Uncomment the line below to use briefing.sqf for mission briefings. Un-needed if you're using XPTBriefings.hpp
//[] execVM "scripts\briefing.sqf";
30 changes: 30 additions & 0 deletions scripts/briefing.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// Script to handle initial mission briefings
// General guidelines would be to include briefings for the following
// Situation, Mission, and Assets
// Briefings are listed in the opposite order that they are written below. New diaryRecords are always placed at the top of the list.
// https://community.bistudio.com/wiki/createDiaryRecord

//player createDiaryRecord ["Diary", ["Assets", "Example Mission Assets"]];
//player createDiaryRecord ["Diary", ["Mission", "Example Mission Briefing"]];
//player createDiaryRecord ["Diary", ["Situation", "Example Situation Briefing"]];

player createDiaryRecord ["Diary", ["Assets", "Example Asset List:<br/>
- 1x Tank<br/>
- 4x Car<br/>
- 4x Truck<br/>
- 2x Helicopter
"]];

player createDiaryRecord ["Diary", ["Intel",
"Example Intel Briefing"
]];


player createDiaryRecord ["Diary", ["Mission",
"Example Mission Briefing."
]];

player createDiaryRecord ["Diary", ["Situation",
"Example Situation Briefing.
<br/>Now with new lines."
]];
2 changes: 1 addition & 1 deletion template/version.hpp
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define __XPTVERSION__ "0.4.1"
#define __XPTVERSION__ "0.4.2"

0 comments on commit bf37f45

Please sign in to comment.