I added this to my test weapon and it didn't seem to work:
use4_functor = spare_parts.ak
use4_action_functor = spare_parts.give_spare_parts
use4_text = "Disassemble"
The goal is to be able to disassemble weapons for different types of parts. I'm very new to scripting with CoC and could use some help, or an example script to look at. This was my feeble attempt to get something to happen:
Code: Select all
if (ak = true) then
SetHudMsg("You dismantle the weapon",5)