Author Topic: how do alt fires work  (Read 493 times)

ive been trying to figure out how to modify the default bow into using the grapple rope for its altfire

ive taken looks back and forth at the codes, but I am not sure on how to pull it off
will the bow be able to use the grapple rope without a toggle?
does an althold(ing) exist for players that hold down the right mouse button?

its pretty obvious I lack the scripting experience, but could someone help me out here?

You would package Armor::onTrigger(%datablock,%player,%slot,%value) and check the player's mounted image to see if it matches with whatever image you are checking.

For checking if someone is holding down the trigger you would create a function loop on the player with a trigger variable check.

When you have no idea where to start, a good thing to do is look at another add-on that does something similar. In this case, find a weapon with an alt fire function. Ideally, a simple one, like firing an attached grenade launcher or something, that way you don't mix it up with any other features.