[SOLVED] trying to call a lua function from one file to another
I have lua function in a subdirectory in a file called npc_upgrades.lua which goes as follows:
function TowerUpgrade( keys ) local caster = keys.caster print( "calling TowerUpgrade" ) end
I am trying to call the above function from a lua function from the parent directory as follows:
LinkLuaModifier("modifier_extended_tower_buffs_base", "hero/npc_upgrades", LUA_MODIFIER_MOTION_NONE)
However TowerUpgrade is never called as: print( "calling TowerUpgrade" ) never prints . What am I doing wrong?