Here is the script I used to initiate the character creator. I used multiple ones and they all had the lighting error.
#include "global_objects_h"
void main(){
event ev = GetCurrentEvent();
int nEvent = GetEventType(ev); //extract event type from current event
int nEventHandled = FALSE; //keep track of whether the event has been handled
switch(nEvent){
case EVENT_TYPE_MODULE_START:{
// -----------------------------------------------------------------
// Initiate character generation.
// -----------------------------------------------------------------
PreloadCharGen(); //preloads resources for character generation
StartCharGen(GetHero(),0,TRUE); //initiates character generation
break;
}
}
if (!nEventHandled) { //If this event wasn't handled by this script, let the core script try
HandleEvent(ev, RESOURCE_SCRIPT_MODULE_CORE);
}
}
Modifié par smjones23, 15 juillet 2010 - 03:32 .





Retour en haut






