ID:164853
![]() Apr 6 2007, 12:47 am
|
|
How would I make it so that when i click on a mob, i get a statpanel with that mob's stats, and the statpanel's name is the mob's name?
|
![]() Apr 6 2007, 1:15 am
|
|
This can be done with a simple built-in function - you can [look up and] set client.statobj to make all your statpanels regard to a different object. See if that does it for ya.
|
Kaioken wrote:
This can be done with a simple built-in function - you can [look up and] set client.statobj to make all your statpanels regard to a different object. See if that does it for ya. we can't find anything to do with client.statobj anywhere in the reference. |
http://developer.byond.com/docs/ref/info.html#/client/var/ statobj
I'm not too sure about that statobj stuff, but this is how I'd do it. mob |
Keeth wrote:
mob You need to re-learn about typecasting. Theres no reason to do that. No, typecasting a var does NOT manipulate it at all, neither does it create any new object (on its own). Typecasting is used only for compile-time processing - mainly for error checking. And I've already mentioned this to you in another topic. |
It works, so I don't much care about anything like that.
If he wants to be proper about it, he can just use that as an example and do it the proper way. |
Yes, but I didn't refer my previous post to him or anything, but to you, so you may fix your useless bad practice (really, for example, bad/ripped codes 'work' too, by definition. 'Working' isn't necessarily 'good').
Its a really simple matter I'm sure you'll almost instantly understand if you choose not to just ignore it. Your choice though, of course. |