UI_close_gumps
Posted: Fri Oct 28, 2016 10:04 am
Anyone else having trouble getting the gumps to close automatically when they should? I was making an egg for "something on" to alert sleeping dragons when the avatar is looting their goodie stash. I've used UI_close_gumps but having no luck getting it working.
Maybe i'm doing something wrong since I'm a bit rusty?
Code: Select all
void DragonAttack 3029()
{
var dragon_list = UI_find_nearby_avatar(504); //dragon shape
UI_close_gumps(); //added this to see if it would work
if (event == EGG)
{
UI_close_gumps(); //added both versions to see if one would work
UI_close_gump();
for (npc in dragon_list)
{
UI_close_gumps();
npc->set_schedule_type(IN_COMBAT);
}
}
}