Check if someone isn't moving.
How do i check if someone isn't moving, if so set him invisible. From when he's moving again, i want to reset the invisibility
|
Re: Check if someone isn't moving.
Check his velocity.
|
Re: Check if someone isn't moving.
is there a tutorial on velocity usements?
|
Re: Check if someone isn't moving.
PHP Code:
|
Re: Check if someone isn't moving.
which function should i use for this? Cmd_Start?
|
Re: Check if someone isn't moving.
Sure, you could check for buttons there and then check velocity:
PHP Code:
|
Re: Check if someone isn't moving.
Player can move without holding a key (falling, end of run, jump, ...)
About where to check, it more depends on what you want to do exactly. |
Re: Check if someone isn't moving.
You can check it whenever you want. If you put it in a function that is not called often then they will be able to move and remain visible for between executions of the code. If you want to have them become visible immediately when they move then you need to use a function that is called very often.
Quote:
|
Re: Check if someone isn't moving.
Oh, you want to set invisible, i think you could use a 0.1 looping task, would be enough, no one could bypass this :)
|
Re: Check if someone isn't moving.
Quote:
|
| All times are GMT -4. The time now is 05:43. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.