Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Server (https://forums.graalonline.com/forums/forumdisplay.php?f=14)
-   -   Stefan you should add support for (https://forums.graalonline.com/forums/showthread.php?t=10703)

KJS 08-29-2001 10:08 AM

Stefan you should add support for
 
you should add support for

keydown server side...

I say that because I am making something that uses key down but everyone on the level has to see you move the object...

I know I can use trigger action but that glitchs up sometimes (like it freezes or something and is kind of lagged)

Warcaptain 08-29-2001 10:19 AM

yeah, he really should

Admins 09-03-2001 02:15 AM

Don't know, then all key action would need to
be sent to the server

KJS 09-03-2001 02:23 AM

Quote:

Originally posted by Stefan
Don't know, then all key action would need to
be sent to the server

true but it would be better then using trigger auction like 10000 times for this game I am making...

oscarjf1 09-03-2001 10:36 PM

.....
 
Couldnt you make something like Keydown2() that is server side? Kinda like onwall2 or something. It would make things a lot easier, ;)

KJS 09-03-2001 10:46 PM

Re: .....
 
Quote:

Originally posted by oscarjf1
Couldnt you make something like Keydown2() that is server side? Kinda like onwall2 or something. It would make things a lot easier, ;)
see stefan doesn't want to make it server side because then when someone hits a key any key it would have to send data to the server what key it sends...

and it would be usless on most levels for that to happen


mabie you can do something like

if(created)
getkeys;

and it sends the keys for that level only...

then on that level and only that level you say that on you can say like

if(keydown(blah))

oscarjf1 09-04-2001 12:04 AM

Re: Re: .....
 
Quote:

Originally posted by KJS


see stefan doesn't want to make it server side because then when someone hits a key any key it would have to send data to the server what key it sends...

and it would be usless on most levels for that to happen


mabie you can do something like

if(created)
getkeys;

and it sends the keys for that level only...

then on that level and only that level you say that on you can say like

if(keydown(blah))

Good idea... Adding something like cangetkeys to an NPC that would then send it to the server would be really great. kinda like canwarp for an NPC.

Admins 09-04-2001 04:18 PM

triggeraction is made for this kind of stuff

KJS 09-04-2001 07:10 PM

Quote:

Originally posted by Kaimetsu
Guys, this would be stupid. Too much lag, and the NPC would never have an up-to-date version of the player's keys. Learn to use triggeraction for it.
I know I can use triggeraction but then I would have to do that everytime someone moves (it is for a game I want to make)

Yakuna2001 09-04-2001 07:15 PM

Quote:

Originally posted by KJS


I know I can use triggeraction but then I would have to do that everytime someone moves (it is for a game I want to make)

live with it. :)

Admins 09-04-2001 08:00 PM

Do some stuff on client-side and only
send informations when it is necessary

Falcor 09-05-2001 03:11 AM

For some NPCs that contain bot CLient and Server codes i make the client one check for keys ythen set a setstring client.keydown,#v(var); and then the server checks the clinet for that. Triggeraction i dont believe works if the client Script is triggering the serverside script if its the same NPC. that might be nice if it could though. Aparently triggeraciton wont work between 2 weapons the clinet has either.


All times are GMT +2. The time now is 09:45 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.