Modifié par stockinator, 21 janvier 2011 - 08:56 .
How to implement an introductional cutscene?
Débuté par
stockinator
, janv. 21 2011 07:39
#1
Posté 21 janvier 2011 - 07:39
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.
#2
Posté 21 janvier 2011 - 10:26
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
Posté 21 janvier 2011 - 05:59
put your cutscene lines into EVENT_TYPE_MODULE_START.
where did you put your char gen lines?
where did you put your char gen lines?
#4
Posté 22 janvier 2011 - 12:33
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.





Retour en haut






