spawnmob
#9
I prefer to call the number "type", rather than "id". ID means unique, two spiders have different IDsTongue So why not call the function StringToMobType(). If you write it in C/C++, you can also make it built in into MCS as an API (see StringToDamageType and DamageTypeToString functions in BlockID.cpp for inspiration)

Instead of doing a ForEachPlayer(), you can also do DoWithPlayer() that calls the callback only once. But then, if you have multiple players of the same name (perfectly legal in MCS), only the first one would match.
Reply
Thanks given by:


Messages In This Thread
spawnmob - by NiLSPACE - 12-25-2011, 09:28 PM
RE: spawnmob - by NiLSPACE - 02-16-2012, 03:16 AM
RE: spawnmob - by tonibm19 - 07-12-2013, 12:15 AM
RE: spawnmob - by tonibm19 - 07-12-2013, 04:02 AM
RE: spawnmob - by NiLSPACE - 07-12-2013, 04:10 AM
RE: spawnmob - by tonibm19 - 07-12-2013, 04:12 AM
RE: spawnmob - by xoft - 07-12-2013, 04:21 AM
RE: spawnmob - by NiLSPACE - 07-12-2013, 04:22 AM
RE: spawnmob - by xoft - 07-12-2013, 04:27 AM
RE: spawnmob - by NiLSPACE - 07-12-2013, 05:01 AM
RE: spawnmob - by xoft - 07-12-2013, 04:20 PM
RE: spawnmob - by NiLSPACE - 07-12-2013, 05:16 PM
RE: spawnmob - by xoft - 07-13-2013, 06:29 AM



Users browsing this thread: 1 Guest(s)