Unfortunately, the creatures are not spawning. At all. Probably due to a stupid mistake on my part, lol.
This is the area script, any pointers about where I might have gone wrong would be extremely appreciated!
#include "events_h"
#include "wrappers_h"
void main()
{
event ev = GetCurrentEvent();
int nEventType = GetEventType(ev);
resource rHurlock = R"climax_blades_hurlock_1hit.utc";
int hurlockcount = 0;
object oWaypoint = GetObjectByTag("hurlockwaypoint1");
location lWaypoint = GetLocation(oWaypoint);
switch(nEventType)
{
case EVENT_TYPE_TEAM_DESTROYED:
{
if(GetEventInteger(ev,0) == 1)
{
CreateObject(OBJECT_TYPE_CREATURE,rHurlock,lWaypoint);
hurlockcount++;
}
break;
}
case EVENT_TYPE_AREALOAD_PRELOADEXIT:
{
CreatePool(rHurlock,35);
break;
}
case EVENT_TYPE_CLICK:
{
if (hurlockcount < 15)
{
CreateObject(OBJECT_TYPE_CREATURE,rHurlock,lWaypoint);
hurlockcount++;
}
break;
}
case EVENT_TYPE_DEATH:
{
object oKiller = GetEventCreator(ev);
if (oKiller == GetObjectByTag("climax_blades_hurlock_1hit"))
{
hurlockcount-=1;
}
break;
}
}
HandleEvent(ev, RESOURCE_SCRIPT_AREA_CORE);
}
Modifié par Alexandus, 16 mars 2010 - 07:17 .





Retour en haut






