Data Realms Fan Forums http://45.55.195.193/ |
|
Attaching lua script to an HDFirearm http://45.55.195.193/viewtopic.php?f=1&t=30570 |
Page 1 of 1 |
Author: | HoneyFox [ Fri Mar 02, 2012 6:56 pm ] |
Post subject: | 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? |
Author: | CaveCricket48 [ Fri Mar 02, 2012 7:11 pm ] |
Post subject: | Re: Attaching lua script to an HDFirearm |
Yeah, your version may be too old. Scripts only work properly when they're on attachables in builds 25 and 26 if I recall correctly. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |