Posted By: Ilidrake
problems with entity clicking - 04/30/08 02:34
I have a level built with 1 entity. I want to be able to click the unit and have a panel pop up. Only when i click over it nithing happens. Can someone help me out with this one? I'm giving the action to the building in WED.
function build_units()
{
if (event_type == EVENT_CLICK)
{
build_gui_pan.visible = on;
return;
}
}
//uses:Available_Slots
action on_click_dock
{
my.enable_click = on;
my.event = build_units;
}
function build_units()
{
if (event_type == EVENT_CLICK)
{
build_gui_pan.visible = on;
return;
}
}
//uses:Available_Slots
action on_click_dock
{
my.enable_click = on;
my.event = build_units;
}