// All module events
#include "utility_h"
#include "wrappers_h"
#include "events_h"
#include "log_h"void main()
{
event ev = GetCurrentEvent();
int nEvent = GetEventType(ev);
Log_Events("", ev);
switch (nEvent)
{
case EVENT_TYPE_ATTACKED:
{
UT_AddItemToInventory(R"bec100im_duncan_crossbow.uti",3);
break;
}
default:
{
break;
}
}
HandleEvent(ev);
}
It must be a scripting problem as when I made it catch EVENT_TYPE_MODULE_LOAD it worked fine, but for some reason I can't get any other event to do anything. When I made a change to the original event I got working it was mirrored in the game, so that is not the problem. I really need help.
EDIT: Forum messed up the line breaks so I re-added them.
Modifié par yeerkkiller1, 04 septembre 2010 - 02:47 .





Retour en haut






