24.10.2009, 19:19 
	
	
	
		Hello, I have a cannon object. When I type for ex. /fire it will fire, but It fire's in different places :S How to find the x,y from these objects? Anybody an Idea?
	
	
	
	
| 
 
					Originally Posted by thuron  
if it is an fs, just search for different coцrdinats, and see where it is. 
 | 

| 
 
					Originally Posted by dice7  
Have you tried GetObjectPos ? 
 | 
CreatePlayerObject(playerid, 3267, pX + (3.9212456678* floatsin(-pA, degrees)), pY + (3.9212456678* floatcos(-pA, degrees)), pZ-1.5, 0, 0 , pA);
	| 
 
					Originally Posted by ╔Jigsaw╗  
Not quite following what you're asking for. 
Explain it better please.  | 
| 
 
					Originally Posted by ╔Jigsaw╗  
 | 
stock GetXYInFrontOfPoint(Float:x,Float:y,&Float:x2,&Float:y2,Float:A,Float:distance)
{
x2 = x + (distance * floatsin(-A,degrees));
y2 = y + (distance * floatcos(-A,degrees));
}