I need some help using an item on a hotspot/character/object.
I searched the forums and downloaded demo games but nothing
.
This is what i have so far
function hHotspot3_Interact()
{
if (player.InventoryQuantity[iSpear.ID] == 1)
{
player.AddInventory(iDrugs,4);
}
else
{
Display("There's something down there but i can;t reach");
}
}
But i would like it to be something like
function hHotspot3_useItem(iSpear)
{
Display("I found drugs")
player.additem(iDrugs);
}
I want to use cursor 4 but i can;t find any specific example.
PLZ HELP Embarrassed
I appologise if i did not search good enough.
I searched the forums and downloaded demo games but nothing

This is what i have so far
function hHotspot3_Interact()
{
if (player.InventoryQuantity[iSpear.ID] == 1)
{
player.AddInventory(iDrugs,4);
}
else
{
Display("There's something down there but i can;t reach");
}
}
But i would like it to be something like
function hHotspot3_useItem(iSpear)
{
Display("I found drugs")
player.additem(iDrugs);
}
I want to use cursor 4 but i can;t find any specific example.
PLZ HELP Embarrassed
I appologise if i did not search good enough.
