Hi!
I'm making a mod, and in it I have a third action to each weapon. I'm starting of with the cross bow, and all 3 fires shall have a warm up... In the sence of when you hold down the fire key, it will warm up and shoot more bolts. Fire1 works: Click, sound, bolt counter inc, let go, and blam!
Fire2 works: Click, sound, bolt counter inc, let go, and a new set of blam!
Fire3 doesn't: Click, sound, bolt counter inc, let go, and it won't stop! The more I press Fire3, the more times it restarts the counter and sound without stopping!
What should I do so that a deactivated message gets sent to the third-action-COG...
BV told me to move it here...
I'm making a mod, and in it I have a third action to each weapon. I'm starting of with the cross bow, and all 3 fires shall have a warm up... In the sence of when you hold down the fire key, it will warm up and shoot more bolts. Fire1 works: Click, sound, bolt counter inc, let go, and blam!
Fire2 works: Click, sound, bolt counter inc, let go, and a new set of blam!
Fire3 doesn't: Click, sound, bolt counter inc, let go, and it won't stop! The more I press Fire3, the more times it restarts the counter and sound without stopping!
What should I do so that a deactivated message gets sent to the third-action-COG...
Code:
# Third action/fire # # By Edward symbols message activated message deactivated end # code activated: SendMessage(GetInvCog(GetLocalPlayerThing(), GetCurWeapon(GetLocalPlayerThing())), user3); return; deactivated: SendMessage(GetInvCog(GetLocalPlayerThing(), GetCurWeapon(GetLocalPlayerThing())), deactivated); return; end
BV told me to move it here...