03.07.2013, 00:16
I think it's better performance wise to have it as a filterscript. Filterscript is like an include file with the exception that you can unload it anytime and increase server performance (without the need to restart the server). Anyways, everyone has their own opinions.
That's weird, what vehicle did you test? I tested like 50% vehicles and all worked fine.
Quote:
Anyway, I've tested it and it doesn't work. I added a print to print the value of 'distance' and it never goes below 0.24 - not even close. (Print was JUST before 'if (distance < 0.24)').
I've transferred the entire thing in to an inc, but I guarantee you I haven't 'broken' anything. It doesn't seem to go below 0.6. EDIT: Fixed by changing to this: if (distance < 1) |