Bolmack
Member
- Joined
- Mar 7, 2015
- Messages
- 91
- Reaction score
- 6
Hello, im trying to put guns on my custom server, i already added the sprite and copypasted the script from a bolt, and it works well, but i have 2 questions:
1. How can i add a new ammo type? i tried this but didnt work
This 1 is the weapon
And this my bullets
Second question:
How can i make my weapon shoot the sprite of my bullets? when a crossbow shots a bolt, you can see a bolt, same whit a bow and arrow, how can i make that?
1. How can i add a new ammo type? i tried this but didnt work
This 1 is the weapon
Code:
<item id="22703" article="a" name="Riffle">
<attribute key="weight" value="4000" />
<attribute key="weaponType" value="distance" />
<attribute key="slotType" value="two-handed" />
<attribute key="ammoType" value="bullet" />
<attribute key="range" value="5" />
And this my bullets
Code:
<item id="2360" article="a" name="bullet">
<attribute key="weight" value="80" />
<attribute key="slotType" value="ammo" />
<attribute key="attack" value="30" />
<attribute key="weaponType" value="ammunition" />
<attribute key="ammoType" value="bullet" />
<attribute key="shootType" value="bullet" />
<attribute key="maxHitChance" value="90" />
<attribute key="ammoAction" value="removecount" />
Second question:
How can i make my weapon shoot the sprite of my bullets? when a crossbow shots a bolt, you can see a bolt, same whit a bow and arrow, how can i make that?