Hi,
I just made/edited a little script to get the aiming position of the crosshair.
Use GOSUB @GET_AIMING_POS to get the aiming cordinates.
It will store the cordinates to 0@ 1@ 2[member=34438].[/member]
Heres an example wich creates a explosion at the aiming position if you rightclick:
	
	
	
		
VIDEO EXAMPLE:
[youtube:v8z3k5za]http://www.youtube.com/watch?v=AZoiY6k760g[/youtube:v8z3k5za]
			
			I just made/edited a little script to get the aiming position of the crosshair.
Use GOSUB @GET_AIMING_POS to get the aiming cordinates.
It will store the cordinates to 0@ 1@ 2[member=34438].[/member]
Heres an example wich creates a explosion at the aiming position if you rightclick:
		Code:
	
	{$CLEO .cs}
THREAD "AIM_EXPLOSION"
0662: NOP "www.youtube.com/OpcodeXe" 
0662: NOP "www.ugbase.eu" 
:START
wait 10
if
0AB0: KEY_PRESSING: 2 // RIGHT MOUSE BUTTON - AIMING
jf @START
GOSUB @GET_AIMING_POS // RETURNS AIMING AT POSITION TO: 0@ 1@ 2@
020C: create_explosion_with_radius 3 at 0@ 1@ 2@ 
Jump @START
:GET_AIMING_POS // PASTE THIS AT THE END OF THE SCRIPT
Actor.StorePos($PLAYER_ACTOR, 1@, 2@, 3@)
0A9F: 5@ = current_thread_pointer 
5@ += 80 
0A8E: 6@ = 5@ + 12 // int 
0AA6: call_method 5327216 11989032 num_params 6 pop 0 6@ 5@ 3@ 2@ 1@ 4@  
if 
86BD:   not no_obstacles_between 1@ 2@ 3@ and 8@ 9@ 10@ solid 1 car 1 actor 0 object 1 particle 0 
else_jump @ADD 
jump @END_POS 
:ADD
4@ += 1.0 
if
  4@ > 250.0 
else_jump @GET_AIMING_POS 
:END_POS
0@ = 0.0
1@ = 0.0
2@ = 0.0
005B: 0@ += 8@ // (float) 
005B: 1@ += 9@ // (float) 
005B: 2@ += 10@ // (float)
4@ = 0.0 // RESET THE AIM RADIUS  
returnVIDEO EXAMPLE:
[youtube:v8z3k5za]http://www.youtube.com/watch?v=AZoiY6k760g[/youtube:v8z3k5za]
 
				 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		