![]() |
function...
is there a function like "function onPlayerMoves()" or something that would update the npc every time the player moves??
|
use a loop to check the players x and y movement :)
|
You could set two constant clientside variables that monitor the player's LAST x and y coordinates in a system NPC and then do something like:
PHP Code:
|
so are you saying that there isn't?
|
Quote:
No, make your own system for it. |
Quote:
|
Quote:
In short: I doubt there will ever be a onPlayermoves() event since it would be too limited. A keydown loop check can work for whenever the player walks or a timeout check if there are other methods of moving. |
PHP Code:
Enjoy ;) P.S. Events only work in weapons. |
Quote:
PHP Code:
|
Quote:
|
Quote:
|
Quote:
|
PHP Code:
|
Is it a read only thing?
|
Quote:
|
Quote:
If you're talking about the GraalControl object, then if you look at Ziro's post, you'll see that he altered the height/width, so I wouldn't think so. Though, I've never used the GraalControl object except for checking whether or not it's the firstresponder. |
I do believe it is read/write... The problem is that the content not covered by GraalControl is in YOUR duty to generate content... That is... You're responsible for the blank-spots. With that insight, it's best not to play with it unless you're doing something quite... Custom.
|
Well he may have posted the script, doesn't mean he used it, which is really why I asked. Not a big deal anyways.
|
Yeah.. it totally messes your screen up =(
|
Quote:
|
Quote:
|
Quote:
This is the best solution without creating wasteful timeouts for events. Besides the current events do the same thing too. |
Quote:
If anything, send it to the selected weapon. You could even make it a flag. HTML Code:
//#CLIENTSIDE |
What if someone needed the event for 10 weapons. Are you going to make 10 timeouts to check for the new flag.
|
I'd call you retarded for having 10 different weapons to check if a person has moved.
|
Quote:
|
Still, I'd call you retarded! However, since you insist!
I'd be an innovator and create my own movement system, which wouldn't involve ten different weapons having the same check, I'd also create a flag which would only check if the player has moved, that is if the flag exists of cause! I'd also gloat in your face, show how it's done and also post it on video jug [I also insist that you use google for your research!] to show how optimization works! |
Quote:
I want to do that, but I can't create GUI controls outside the GraalControl. |
Quote:
|
Quote:
PHP Code:
|
I love how little people know about GUIs :)
(ie GraalControl) |
Quote:
|
Quote:
I showed you how it works <3 Quote:
|
Quote:
|
Can you guys not have a discussion without pride issues and attacking each other?
|
Quote:
And well pride issues are gunna happen hell raven. It's what happen when every scripts a different way and think they're rather damn good at it. |
We're man.
|
Quote:
|
I do consider myself the most organized in scripting and other things, on Graal at least. :D
Quote:
|
Quote:
|
| All times are GMT +2. The time now is 04:18 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.