| Blockland Forums > Suggestions & Requests |
| Player name display VCE vars |
| << < (2/3) > >> |
| Tinsel:
I need VCE variables to be displayed. Also yeah the bot AIShapname event is functioning. |
| phflack:
if you don't want to use .dump(), can you be more specific so somebody else can? which variables? |
| Tinsel:
--- Quote from: phflack on April 06, 2019, 06:48:18 AM ---which variables? --- End quote --- Client variables |
| phflack:
pretty sure client variables are always stored in the brick group of whoever is hosting the build, or it may be flipped and it's the client's brick group with the host's number in my case though, i clicked a brick that set client variable duck to 5, and then ran this --- Code: ---$c = findClientByName("phflack"); //returned 11237 echo($c.brickGroup.varGroup.valueClient_11237_duck); //printed 5 --- End code --- found it pretty easily with $c.dump();, $c.brickGroup.dump();, and $c.brickGroup.varGroup.dump(); i'd recommend testing with multiple people to see if all variables are on one brick group (which i kind of remember it being that way) |
| Tinsel:
--- Quote from: phflack on April 07, 2019, 02:33:59 PM ---pretty sure client variables are always stored in the brick group of whoever is hosting the build, or it may be flipped and it's the client's brick group with the host's number in my case though, i clicked a brick that set client variable duck to 5, and then ran this --- Code: ---$c = findClientByName("phflack"); //returned 11237 echo($c.brickGroup.varGroup.valueClient_11237_duck); //printed 5 --- End code --- --- End quote --- How would I implement this in my server, a server.cs? |
| Navigation |
| Message Index |
| Next page |
| Previous page |