Object Facing Angle?
#3

What about it?
It will create the object in front of the player.

PHP код:
new ObjID strval(params);
        new 
Float:XFloat:YFloat:ZFloat:Ang;
        
GetPlayerPos(playeridXYZ);
        
GetPlayerFacingAngle(playeridAng);
        
+= (floatsin(-Angdegrees));
        
+= (floatcos(-Angdegrees));
        
CreateObject(ObjIDXYZ0.00.0Ang); 
Reply


Messages In This Thread
Object Facing Angle? - by -CaRRoT - 28.11.2012, 16:36
Re: Object Facing Angle? - by -CaRRoT - 28.11.2012, 19:42
Respuesta: Object Facing Angle? - by ThePhenix - 28.11.2012, 20:08
Re: Object Facing Angle? - by -CaRRoT - 29.11.2012, 12:35
Re: Object Facing Angle? - by ViniBorn - 29.11.2012, 13:12
Re: Object Facing Angle? - by -CaRRoT - 03.12.2012, 15:25
Re: Object Facing Angle? - by ikkentim - 03.12.2012, 15:29
Re: Object Facing Angle? - by -CaRRoT - 03.12.2012, 15:34

Forum Jump:


Users browsing this thread: 3 Guest(s)