Moving An Object
#1

How can I move an object forward with ^ and sidewards with < >? ((<> represent arrow keys))
Is it possible to "drive" and object?
Reply
#2

Search forums, look at drivable objects in filterscripts, learn.
Reply
#3

yes you can "drive" an object

you need this
pawn Код:
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));
}
forwards would be the coords in front of the player; backwards would be 180 rotated; > would be 90 and < would be 270;

for that tho you need to know some trigonometry and i'm not good at it.

you can however use this
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)