Attaching lua script to an HDFirearm
Hi,
I'm trying to attach a lua script file to a gun (HDFirearm).
But in game it just didn't work. game version is B23 i think.
I even added
Code:
print("Weapon created.");
into the function of Create(self), but when i bought a bot with that weapon and it arrived safely to the ground, nothing displayed in the console. the script of the gun didn't start at all.
Then i look for other guns' ini files and i found that there's not any HDFirearm that is attached with lua. Most lua scripts are attached to some particles/emitters generated when the gun fires.
However, i want my script running not only when it is being fired but at any time. What can i do? Is it because the game version is too old?