Quote:
Originally Posted by cbk1994
Unfortunately, no, though it would be very useful and would be a nice addition to the scripting language.
You can, however, do stuff like
PHP Code:
temp.importantDatabases = {(@ "Control-NPC"), DB_PlayerStats, DB_Bank}; temp.lists = {this.level.npcs, player.weapons, imporantDatabases};
for (temp. list : lists) { for (temp.obj : list) { obj.trigger("myFunction", "..."); } }
for most cases
|
I'll probably whip something up. It'll be a bit more complex because I need it the object list to dependent on what ever is in the Weapons/NPCs lists, and update automatically when weapons are added and removed (for server triggers).
I could scan the weapons/* folder, but that'd be so insecure.
Another possibility is a global register of weapons and NPCs and that a requirement is to have a class joined to every created weapon/npc.
Either way isn't a totally ideal solution. I'll just experiment.