18.11.2015, 17:32
How can i relate the function GetPlayerFacingAngle and GetPlayerPos?
I am doing some medic system with animation CPR.
I need the patient will do a small teleport in front of medic for do the CPR.
But i need to relate the Facing Angle of The Medic, right?
In this point i have:
Where the Var: medico is the MEDIC, and playerid is the Patient.
I am doing some medic system with animation CPR.
I need the patient will do a small teleport in front of medic for do the CPR.
But i need to relate the Facing Angle of The Medic, right?
In this point i have:
Код:
new Float:medicox, Float:medicoy, Float:medicoz, Float:medicoa, Float:px, Float:py,Float:pz; GetPlayerPos(playerid, px,py,pz); GetPlayerPos(medico, medicox,medicoy,medicoz); GetPlayerFacingAngle(medico, medicoa); SetPlayerPos(playerid, medicox, medicoy,medicoa); ApplyAnimation(medico, "MEDIC", "CPR", 4.0, 0, 0, 0, 0, 0); // CPR


