
10-27-2006, 04:12 AM
|
|
Graal Administration
|
Join Date: Jan 2000
Location: Admins
Posts: 11,693
|
|
|
'A' would be the nicest solution, although not necessary the most efficient, because currently class scripts are not cached (need to be downloaded on first use) and the requested function might not exist yet when the class is not loaded yet (onCreated() is not called then either, even if it would be cached).
'B' is more efficient because weapons are cached, and most of the time item systems require some central control script anyway (which is creating the item objects).
If you can live with the delay of the class script loading then 'A' would be best I guess, otherwise use 'B'. |
|
|
|