External Scripts / Organisation
Posted: Sun Nov 04, 2012 11:21 am
hey,
maybe some of the script gurus can help: i like to keep the bulk of my scripts in external files. now this seems to be impossible, i can only put item/object/etc. definitions into external lua scripts. did i forget something?
example: i have a custom barrel and would like to do: onDie = fiz_spawnLoot()
now the fiz_spawnLoot() would be defined in a external lua script and NOT in a script entity. is this even possible? the script is quite long and will be modified/updated often. also i would like to call this function from various hooks (onDie of objects and monsters etc.)
I saw something similiar in the log framework, but did not fully grasp its functionality.
maybe some of the script gurus can help: i like to keep the bulk of my scripts in external files. now this seems to be impossible, i can only put item/object/etc. definitions into external lua scripts. did i forget something?
example: i have a custom barrel and would like to do: onDie = fiz_spawnLoot()
now the fiz_spawnLoot() would be defined in a external lua script and NOT in a script entity. is this even possible? the script is quite long and will be modified/updated often. also i would like to call this function from various hooks (onDie of objects and monsters etc.)
I saw something similiar in the log framework, but did not fully grasp its functionality.