View unanswered posts | View active topics
|
Page 1 of 1
|
[ 2 posts ] |
|
| Author |
Message |
|
neizarr
|
Post subject: moble.isA(POLCLASS_PC) Posted: Mon Dec 11, 2006 3:32 pm |
|
Joined: Thu Dec 07, 2006 11:33 pm Posts: 30
|
|
It would be nice if the method function isA would accept a new constant POLCLASS_PC, which would basically just do the check to see if it is a POLCLASS_MOBILE & not a POLCLASS_NPC.
Sure, it's easily scriptable, and you can do it in a include file, but if it existed in the core it would be a standard way of handling this very basic check, rather than half the people doing the above and another half seeing if the mobile has an ip member or not. So, it's just a conveniance feature, but a few of these sorts of conveniance features seemed to have been added, so maybe someone would like to make life a smidgen easier for scripting. Particularly since when you are just starting out with scripting it is a common question of newbies, "How do I determine if the target is a player?" Well, with POLCLASS_PC, it would be obvious!
|
|
| Top |
|
 |
|
Austin
|
Post subject: Posted: Mon Dec 11, 2006 5:30 pm |
|
 |
| POL Developer |
 |
Joined: Wed Jan 25, 2006 2:30 am Posts: 409 Location: San Diego, California
|
|
| Top |
|
 |
|
Page 1 of 1
|
[ 2 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 0 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|