24.07.2014, 18:29
I have a CPU burner solution for that, as long as It's too much (and also simple), I'll tell it literally:
Bind FORWARD & BACKWARD (Holding) to use trigonometric calculations and find the facing angle's triangular aspect ratio and multiple it by a little number and add/subtract it to/from the NPC's current position.
Use a reverse ratio for LEFT & RIGHT.
Bind F/ENTER to find the closest vehicle (if any) and then PutPlayerInVehicle...
and if in vehicle, RemovePlayerFromVehicle...
... Looks like an airbreaking robot ._.
and eats your server's CPU as well
Bind FORWARD & BACKWARD (Holding) to use trigonometric calculations and find the facing angle's triangular aspect ratio and multiple it by a little number and add/subtract it to/from the NPC's current position.
Use a reverse ratio for LEFT & RIGHT.
Bind F/ENTER to find the closest vehicle (if any) and then PutPlayerInVehicle...
and if in vehicle, RemovePlayerFromVehicle...
... Looks like an airbreaking robot ._.
and eats your server's CPU as well