As a start i wanted to make a mini-adventure where u are a normal warrior that has been called from his lady to make a new army for her, cause the last one was almost defeated.
So here's my problem i can't make that when i finish the quest a soldier summon near me, maybe someone can help me? (i've made a waypoint tag= summon and the soldier that as tag=soldier). Maybe someone can give me advice on how to make it happen?
#include "events_h"
#include "global_objects_h"
void main() {
event ev = GetCurrentEvent();
int nEventType = GetEventType(ev); //extract event type from current event
int nEventHandled = FALSE; //keep track of whether the event has been handled
object npc = GetObjectByTag("soldier");
int type = GetObjectType(npc);
location ltarget = GetLocalLocation(OBJECT_SELF,"summon");
resource res = GetLocalResource(OBJECT_SELF,"soldier.utc");
switch(nEventType)
{
case EVENT_TYPE_PARTY_MEMBER_FIRED:
{
CreateObject(type,res,ltarget);
break;
}
}
if (!nEventHandled) //If this event wasn't handled by this script, let the
{
HandleEvent(ev, RESOURCE_SCRIPT_MODULE_CORE);
}
}
Just post if u need more information ^^
Modifié par Creed13, 13 novembre 2009 - 07:59 .





Retour en haut






