![]() |
-FooL- Player Indexed bombs/arrows/etc.
-FooL-
Unless there's another way to do this, these would be helpful commands to have: players[i].explo players[i].arrow players[i].bomb etc. So you could check which explosion/arrow/bombs belonged to which player. |
Wouldn't bombs[i].owner (etc.) be more useful?
Though I guess it doesn't really matter much. |
That or it could be an array in explos, or bombs[i].owner and player[i].explos = {ids}
|
It'd have to be message codes since strings doesn't work with variables.
|
Not if you go with the player's id, that's an integer.
|
Yes but having only and ID would work w/ limitations to non-p2p. Messagecodes would be better so you dont have to check the account name. You could always get the person's ID but you rarely need it on most servers. Unless you are doing allplayers.
|
Erm, huh?
On non-P2P, you can only see your own #a... if(bombs[this.i].pid=playerid){ //it is my bomb if(arrows[this.i].pid>-1&&!arrows[this.i].pid==playerid){ //it is not my arrowif(explos[this.i].pid<0){ //it is nobody's explosion/caused by a room-based NPC |
I wish I understood this stuff.
|
Quote:
|
Quote:
|
| All times are GMT +2. The time now is 07:52 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.