Investigating critter under the mouse pointer.

Mulligun

Still Mildly Glowing
I'd like to rewrite a critters look_at_p_proc procedure to make there same stuff. What i need is the pointer to the critter currently under the mouse pointer. How can i get the critter pointer in the look_at_p_proc?
 
to make there same stuff
To make there what?

If you want to overwrite the look_at_p_proc from a critter, you just edit the critter script. Why do you need to make it more complicated than necessary?
 
I'd like to rewrite a critters look_at_p_proc procedure to make there same stuff. What i need is the pointer to the critter currently under the mouse pointer. How can i get the critter pointer in the look_at_p_proc?

The pointer is "self_obj".
This is always the object related to the script. Once you "look at" a critter, its look_at_p_proc procedure in its script will turn on. Hence - self_obj.
 
Last edited:
I think he's asking what script to use to get the information that normally happens when you use the "look at" function in game, how it identifies what's under the mouse cursor when you click.
I'm not entirely sure yet either, but the look_at_p_proc seems to be the place to make use of that function.

But then I may not understand what is being asked for :(
 
Back
Top