![]() |
Getting an BIG array from serverside to clientside, or NPCs?
I am working on a mining system where at the beginning, the whole level is filled with walls. Then you use your pickaxe to dig your way through the walls, and sometimes find minerals.
How would I transfer an array that contains all of the wall/not wall info from the serverside to clientside? Or would it be better to have every "tile" as a seperate NPC? |
Suggestion
Defining a variable clientside and serverside is pretty much the same. If not, then thiso.<name> might be useful. I can't say I really have played around with serverside/clientside variables that much...
|
Re: Suggestion
Quote:
loriel, I would suggest making the npc showcharacter; and using gani attributes setcharprop #P(30),#v(this.var[0]); for(i=1;i<arraylen(this.var);i++){ setcharprop #P(30),#P(30,-1),#v(this.var[i]); } |
That is what I am doing now, thanks :)
|
| All times are GMT +2. The time now is 11:46 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.