Page 1 of 1

your player with shortbow or longbow

Posted: Wed Feb 04, 2015 8:06 pm
by Halluinoid
can fire normal arrows or cold arrows

but if you put shock arrows or flaming arrows in his hand it says "no ammo" and neither bow will fire them

I upgraded my player on missile skills, no difference

how does a team player use the shock arrows or fire arrows with shortbow or longbow? :mrgreen:

Re: your player with shortbow or longbow

Posted: Wed Feb 04, 2015 8:18 pm
by minmay
Cold arrows can be fired because they have this component:

Code: Select all

		{
			class = "AmmoItem",
			ammoType = "arrow",
			attackPower = 1,
		},
Shock and fire arrows lack this component and so cannot be fired by a bow.

However, you should not use these arrows in your mods in the first place, even if you fix this issue. This is because convertToItemOnImpact is completely useless for ammunition due to two major limitations:
1. A stack of items will convert to only a single item; throwing a pile of 5 cold arrows will convert them to 1 arrow.
2. Ammunition that is converted does not get automatically picked up, even when the slot is available to do so.

I consider any mod that places cold/fire/shock arrows to be broken and unsuitable for distribution.

Re: your player with shortbow or longbow

Posted: Wed Feb 04, 2015 8:33 pm
by Halluinoid
the mod will allow cold arrows to be used by shortbow or longbow, no issue to fix

if it works, that's good enough surely?

Re: your player with shortbow or longbow

Posted: Wed Feb 04, 2015 8:35 pm
by minmay
I just told you two different reasons why it doesn't work.

Re: your player with shortbow or longbow

Posted: Wed Feb 04, 2015 9:25 pm
by Halluinoid
I just tried the cold arrows

they fire

they hit, they inflict damage on enemies

they then pick up as normal arrows

what part of that doesn't work for you? :( I'm confused

Re: your player with shortbow or longbow

Posted: Wed Feb 04, 2015 9:56 pm
by minmay
minmay wrote:1. A stack of items will convert to only a single item; throwing a pile of 5 cold arrows will convert them to 1 arrow.
2. Ammunition that is converted does not get automatically picked up, even when the slot is available to do so.