Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Vehicles - Best way (https://forums.graalonline.com/forums/showthread.php?t=51960)

Gman4pwnu 03-26-2004 06:14 AM

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?

xManiamaNx 03-26-2004 06:17 AM

attachplayertoobj is your friend for making certain vechicles. Especially boats/rafts/ships :p

Gman4pwnu 03-26-2004 07:57 AM

What about vehicle itself? Class ? It seems a bit unsmooth in the movement.

Python523 03-26-2004 08:54 AM

depends on what kinda vehicle really and what features you want on it

Ningnong 03-26-2004 10:34 AM

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 :)

Gman4pwnu 03-26-2004 07:01 PM

lol how could i have missed that in commands.rtf!! I didn't think it would be that simple!

What is time for?

Gman4pwnu 03-27-2004 10:14 AM

move clientside or server?

WanDaMan 03-27-2004 12:47 PM

Quote:

Originally posted by Gman4pwnu
move clientside or server?
Depends what you want to do, it's harder serverside I believe?

R0bin 03-27-2004 02:09 PM

move sucks in both serverside and clientside.

Loriel 03-27-2004 02:38 PM

Just because you failed to use it correctly ;)
No, it is very handy serverside.

VeX_RaT_Boy 03-27-2004 06:33 PM

<3 move's smooth movement serverside :)

-Ramirez- 03-27-2004 09:13 PM

Quote:

Originally posted by R0bin
move sucks in both serverside and clientside.
lmao!!
I agree, but only due to the idiotic 0.5 limits Stefan has imposed on EVERYTHING.

Dach 03-27-2004 11:20 PM

move works wonderfully if you use it right (i.e. my pathfinder npc guys)

Loriel 03-27-2004 11:24 PM

Quote:

Originally posted by -Ramirez-
idiotic 0.5 limits Stefan has imposed on EVERYTHING.
You notice you are the only one complaining about that?

-Ramirez- 03-28-2004 01:03 AM

Quote:

Originally posted by Loriel
You notice you are the only one complaining about that?
That makes it less of a problem?

zokemon 03-28-2004 01:04 AM

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.

Polo 03-28-2004 02:05 AM

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.