|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Tue Nov 28, 2006 11:30 pm
[1.17] Predefined Events Suggestions |
Just a few I can think of:
OnZoneChange
I think we need this one added because packages may have classes that may need to be enabled and disabled based on the map zone. This provides a single interface instead of having to replicate the commands in every zone script in the map.
OnLoad
Possibly useful for allowing a package to adjust its configuration based on the presence of other packages, or just adjusting configuration for first time it is loaded from the package library.
OnEnable
OnDisable
Both may be useful as packages begin to interract more with each other, these would be called with information on what setting had been dis/enabled. |
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
|
The Raven Magician
Joined: 13 Oct 2000 Posts: 463
|
Posted: Tue Nov 28, 2006 11:39 pm |
Nice ones Vijilante.
|
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Wed Nov 29, 2006 2:00 am |
Then OnEnable/OnDisable might be a tough one, since there are many ways for a setting to get enabled/disabled and this would essentially require a trap in the database to see if this field gets modified, and calling events from database "OnPost" events is probably a bad idea.
The OnLoad is easy, and the OnZoneChange *should* be easy, although I really don't like to mess with the mapper right now. |
|
|
|
Iceclaw Apprentice
Joined: 11 Sep 2005 Posts: 124
|
Posted: Thu Nov 30, 2006 6:19 pm |
On Zone change would be Amazing,
|
|
|
|
|
|