ok, i've copied in the code (thanks

), but it seems it has the same flaws as before..
It won't work on my custom cursor (ID 10, Sniff).
[code]else if (what == 2) // object
{
if (type == 0) UnhandledEvent(eLocationObject, eModeLookat);
else if (type == 1) UnhandledEvent(eLocationObject, eModeInteract);
else if (type == 2) UnhandledEvent(eLocationObject, eModeTalkto);
else if (type == 3) UnhandledEvent(eLocationObject, eModeUseinv);
else if (type == 5) UnhandledEvent(eLocationObject, eModePickup);
else if (type == 6) UnhandledEvent(eLocationObject, eModeUsermode1);
else if (type == 7) UnhandledEvent(eLocationObject, eModeUsermode2);
else if (type == 8) UnhandledEvent(eLocationObject, eModeSniff);
}
and..
function UnhandledEvent(LocationType where, CursorMode what, InventoryItem *item)
{
// put your unhandled event interactions here, i.e.
if (where == eLocationObject)
{
if (what == eModeLookat)
{
}
else if (what == eModeInteract)
{
Display("interact with object");
}
else if (what == eModeTalkto)
{
Display("Talk to object");
}
else if (what == eModeUseinv)
{
Display("use inv object");
}
else if (what == eModePickup)
{
Display("pick up object");
}
else if (what == eModeSniff)
{
Display("Sniff object");
}
else Display("ok?");
}
}[/code]
The sniff won't work on the objects, though the others do.
was i meant to insert another code section to address this? (sorry if the answer is in your post khris, i was thinking monkey's was an easier format to port.)
thanks.