1
Script Discussion / Re: Cannot Create a Symbolic Link
« on: September 30, 2014, 04:00:33 pm »
I ain't no linux genius but I'd advice you to use google....
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
What you think caused the bug
Pressing way too fast the Enter button to send the message written.
Code: [Select]// [Ka]Juppi's func from http://forum.liberty-unleashed.co.uk/index.php/topic,398.0.html
// ported to fit your needs
function GetForwardPoint( pos, angle ) // you must pass an angle in degrees
{
local rad = angle * PI / 180; // we convert to radians
local x = pos.x, y = pos.y;
local x2 = x + 1.0 * cos(rad) - 25.0 * sin(rad); // we calculate
local y2 = y + 1.0 * sin(rad) + 25.0 * cos(rad);
return Vector( x2, y2, pos.z ); // return a vector
}
usage:Code: [Select]player.Pos = GetForwardPoint( FindVehicle(0) /* example */, FindVehicle(0).EulerAngle.z );