![]() |
Finding players in Z range
PHP Code:
|
You can use vectorDist()
PHP Code:
|
Quote:
PHP Code:
|
Quote:
I may be doing it wrong.. but the way I did it seems so much simpler... in the action- PHP Code:
PHP Code:
|
Ah I now get it. You'd need to make a player class (like a health class) to check what the players z value is (inside the onActionLighthurt()) and control any further stuff from there on.
PHP Code:
|
Quote:
I have a little side question though. How do I change the player's location on the screen? For example, if I want the player a little further down the screen instead of centered? Is this possible? |
Quote:
resetfocus(); and setfocus(x, y); |
| All times are GMT +2. The time now is 02:13 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.