#include "log_h"
#include "utility_h"
#include "wrappers_h"
#include "events_h"
void main()
{
event ev = GetCurrentEvent();
int nEventType = GetEventType(ev);
string sDebug;
switch(nEventType)
{
////////////////////////////////////////////////////////////////////////
// Sent by: The engine
// When: A creature has clicked on this placeable
////////////////////////////////////////////////////////////////////////
case EVENT_TYPE_USE:
{
object oUser = GetEventCreator(ev);
DisplayFloatyMessage(oUser, "Used object!");
object oMap = GetObjectByTag("map_resourcesov");
WR_SetWorldMapPrimary(oMap);
OpenPrimaryWorldMap();
break;
}
}
}
I want the script to open the word map when they use my object. The script changes the active world map which is half of what I want it to do but it never opens the world map. Can some one please point me in the right direction.
Thanks
Modifié par Dragon-Slayer, 20 décembre 2009 - 06:35 .





Retour en haut






