on_mouse_click usage

Started by remixor, Wed 30/04/2003 12:15:00

Previous topic - Next topic

remixor

Hi (again), I've got another question.

I want to have a right click on a hotspot, character, or object perform a "look" on that object.  Can I use on_mouse_click for that?  Also, where do I put on_mouse_click?  I first tried putting it in the interactions editor for the hotspot, but that didn't work.  I read the manual section about Text Script Event References, which is where I found out about on_mouse_click, but it was somewhat confusing to me.  I basically want on_mouse_click(RIGHT) to look at an object, but I'm not sure where to put it so I can do that.  
Writer, Idle Thumbs!! - "We're probably all about video games!"
News Editor, Adventure Gamers

RickJ

You would put it in the global script.  Probably you have one there already.  You decode the mouse buttons similar to how you decode gui clicks.   Take a look at your global script and ecerything should be clear.

SMF spam blocked by CleanTalk