Quote:
Originally Posted by Codein
Is it possible to trigger an event and it be picked up by every script on the client or server, depending on which you use it on?
Would be very useful to me.
|
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