ID:267131
 
Ok. Im making a game where the client switches between two mobs frequently. Now say I have a variable, drunk. I need access to this when your either of the mobs.
Now using a client var would make it easier to access at any time. I could also make it so that both mobs have the drunk var, and they either pass it over when changing mobs, or it updates both at the same time when its modified.
So anyway, I was just wondering, would it be better to use mob variables or client variables?
-DogMan
are these two mobs just like different icon states? it would be better to use mob variables in my opinion, because it doesn't seem like you need to actually switch mobs, just switch the icon_states of the mobs. but im not sure what you are asking though.



THE FREAKING TWO TOWERS COMES OUT TOMORROW GUYS!!!!!!!!
In response to Metallica
Metallica, don't provide input on things you don't understand. He probably has a perfectly good reason for having different mobs. Anyway, using client variables is probably the best way.
If drunk is a variable that only players can have, use client variables. However, NPCs do not have a client, so you can't make it a client variable if NPCs need it too.
In response to Shadowdarke
Oh yeah. I completely forgot about that. NPC's wont need it, but I'll have to remember that later on if I do it again.
-DogMan