Well as I promised here I send the necessary code on a common brief function
There you can review and check with your code.
Functions must be sorted as here there are, this, you put the brief functions at end and declare "brief" and "color" to each brief object.
The command to open a briefing is MS_RunBriefing and is declared on MAIN function.
#sector: "yoursector.sec";
#include wcp;
#include consts;
#include comms;
#strings spacefli;
#strings targetid;
#strings objectiv;
#SetRooms ("your.rom","");
object Player(Player)
obj: ST_SHIP_Stiletto;
x: 20;
y: 0;
z: 0;
main: M_Player;
brief: B_Player;
pilot: Pilot_Casey1;
color: 0, 0.8, 0.8, 0.0;
end;
object Nav1(Navpoint)
x: 0;
y: 0;
z: 0;
main: M_NAV1;
brief: B_Nav;
color: 0,0,1,1;
name: Spacefli["Nav 1"];
navdata: 1, 10000;
end;
function MAIN;
begin
MS_RunGameflow(0);
MS_RunBriefing;
MS_RunSpaceflight(0);
end;
function M_Player;
begin
... your player code here
AI_WaiSeconds(1);
end;
function M_NAV1;
begin
... your nav code here
AI_WaiSeconds(1);
end;
function B_Player;
begin
BRIEF_CAM_SetActive(1);
BRIEF_CAM_SetPos(0, 500, 0);
BRIEF_CAM_TrackObj(Player);
BRIEF_SetAppearance(ST_APPEARANCE_Stiletto);
BRIEF_FaceObject(Nav2);
BRIEF_Activate;
SYS_PlaySFX(SFX_BRIEF_Blowup);
BRIEF_WaitSeconds(1);
BRIEF_VoiceOver(02, 0, 4);
BRIEF_WaitSeconds(4);
BRIEF_VoiceOver(02, 1, 7);
BRIEF_GotoObjRelFrameSeconds(Nav2, -10, 0, -40, 7, 0);
BRIEF_VoiceOver(02, 2, 5);
BRIEF_WaitSeconds(5);
SYS_PlaySFX(SFX_BRIEF_Activate);
BRIEF_VoiceOver(02, 3, 5);
BRIEF_WaitSeconds(5);
BRIEF_VoiceOver(02, 4, 4);
BRIEF_WaitSeconds(6);
BRIEF_Exit;
while(1) do BRIEF_WaitSeconds(1);
end;
function B_Nav;
begin
BRIEF_Activate;
BRIEF_DisplayName(1);
BRIEF_SetSize(100);
BRIEF_SetAppearance(1);
while(1) do BRIEF_WaitSeconds(1);
end;