![]() |
player.localx & player.localy
On gmaps, these will return the player's local coordinates in the level, not on the gmap.
|
Can't you just mod the player.x or player.y by 64?
player.x [PERCENTSIGN] 64; player.y [PERCENTSIGN] 64; The only problem is that I think it may be off by a small amount because it can't return odd decimals |
Actually it's int(player.x/64)*64 + player.x :)
|
Quote:
|
Could use:
PHP Code:
|
Quote:
Sales is correct, however, this would be a great addition (for serverside and clientside). |
I agree with the suggestion.
|
Quote:
|
Thought of something while I was at work that would give the exact decimal instead of a .0625 approximation which is what you get when simply doing player.x [mod] 64
PHP Code:
|
It is pretty simple, but to have to do this whenever we want to do a simple comparison check in a level gets redundant. Not to mention for LATs and such, it's probably way out of their league.
|
Quote:
|
| All times are GMT +2. The time now is 11:26 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.