![]() |
Vehicles - Best way
Im wondering what the best way to do vehicles would be. So far ive tried classes and showimg on the players x,y. The classes are real laggy with movement as i control it all serverside. Im just wondering whats the smoothest way to move an npc along? I guess it would be similar to a monster thats serverside.
Im not asking for a script here... just what would be the best way to handle it? |
attachplayertoobj is your friend for making certain vechicles. Especially boats/rafts/ships :p
|
What about vehicle itself? Class ? It seems a bit unsmooth in the movement.
|
depends on what kinda vehicle really and what features you want on it
|
If you want something thats there, and the player can just jump into i.e. car. I'd advise using a class, and use the move command rather than a timeout of 0.1 and changing the x/y (if thats what you are doing).
You can get smooth movement using the move command :) |
lol how could i have missed that in commands.rtf!! I didn't think it would be that simple!
What is time for? |
move clientside or server?
|
Quote:
|
move sucks in both serverside and clientside.
|
Just because you failed to use it correctly ;)
No, it is very handy serverside. |
<3 move's smooth movement serverside :)
|
Quote:
I agree, but only due to the idiotic 0.5 limits Stefan has imposed on EVERYTHING. |
move works wonderfully if you use it right (i.e. my pathfinder npc guys)
|
Quote:
|
Quote:
|
Uhh...
Why not just make it like the classic horses? When you touch it the npc, it goes away and triggers (or adds) a npcw which sets the gani of the players to something with the car in it. |
make the framework serevrside in a class, use attachplayertoobj, draw it all cliientside.
Move rocks imho, used it many many times, very easy to get grat results with it, especially when coupled with a simple sprite changing loop, to get nice walking from showcharacter npc's |
| All times are GMT +2. The time now is 11:44 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.