Sorry for posting so much, but once again after hours of searching, I can't find anything on this anywhere...
I want to make a basic "use inventory with NPC" function, that only applies when the mouse cursor is set to the inventory item graphic, like in Sam n Max Freelance Police (and most probably many other games).
I have tried figuring out the code myself, and ended up with this, but apparently it is not entirely correct;
function Girl_AnyClick(){
if (iTeddyBear.CursorGraphic){
//some scripting
}
else{}
}
I don't know if it's AnyClick I should use, or if there's a better option, and I don't know if the (iTeddyBear.CursorGraphic) makes any sense in this context either...
Any help would be greatly appreciated.
I want to make a basic "use inventory with NPC" function, that only applies when the mouse cursor is set to the inventory item graphic, like in Sam n Max Freelance Police (and most probably many other games).
I have tried figuring out the code myself, and ended up with this, but apparently it is not entirely correct;
function Girl_AnyClick(){
if (iTeddyBear.CursorGraphic){
//some scripting
}
else{}
}
I don't know if it's AnyClick I should use, or if there's a better option, and I don't know if the (iTeddyBear.CursorGraphic) makes any sense in this context either...
Any help would be greatly appreciated.