Aller au contenu

Photo

How to implement an introductional cutscene?


  • Veuillez vous connecter pour répondre
3 réponses à ce sujet

#1
stockinator

stockinator
  • Members
  • 10 messages
I've read the wiki page on it, and it isn't helping me to achieve it. i want the cutscene to play as the first thing the player sees when they load up the module. I've eliminated character creation so this is literally the first thing that i want to appear. please help.

Modifié par stockinator, 21 janvier 2011 - 08:56 .


#2
stockinator

stockinator
  • Members
  • 10 messages


This is what i've got so far.







#include "sys_chargen_h"

#include "utility_h"

#include "events_h"

#include "global_objects_h"



void main()

{

event ev = GetCurrentEvent();

int nEventType = GetEventType(ev);

int bEventHandled = FALSE;

switch (nEventType)

// keep track of whether the event has been handled

int nEventHandled = FALSE;



switch(GetEventType(ev))

{

case EVENT_TYPE_MODULE_START:

{

{

case EVENT_TYPE_AREALOAD_SPECIAL:

{

object oCreature = GetEventCreator(ev);

if(GetObjectActive(OBJECT_SELF)

&& IsPartyMember(oCreature))

{

resource rCutscene = R"opening.cut";

CS_LoadCutscene(rCutscene);

SetObjectActive(OBJECT_SELF, FALSE);

}

}

break;

}



}





}







}

#3
Apolyon6k

Apolyon6k
  • Members
  • 175 messages
put your cutscene lines into EVENT_TYPE_MODULE_START.



where did you put your char gen lines?

#4
stockinator

stockinator
  • Members
  • 10 messages
im not using chargen. i fogot to get rid of #include system_chargen, but that shouldn't do anything should it? and thanks, ill give it a shot.