@SUCCESSOR
how so? I wanted to make a gb sword script as well but I don't know how to spawn a hitbox
however right now I'm having trouble with the shovel rapid firing
I want it to work when I press the item button, not when I hold it down
Wait... I thought that you were already using stdWeapons.zh?
That comes with a sword script...
Using ffcs to control weapons is a pretty basic model. Essentially, when you use an item, the item script;
finds a free (unused) ffc.
Loads an ffc script into that free slot.
The ffc controls the weapon generated by the item script.
This permits extending the effects of an item script beyond one frame, by piggybacking an ffc onto it. You can also do the same with the global active script, which is preferred in some instances. Remember, there are at most 32 running ffcs at any given time, and up to 255 weapons, plus up to 255 npcs. If you use ffcs for nothing else, you can quickly run out if you use ghosted npcs and ffc-attached weapons, so care is required.