| Blockland Forums > Modification Help |
| Ammoguns: Reloading isnt working?{Help please D:} |
| << < (3/4) > >> |
| takato14:
ASDF HALP PL0X :C! |
| takato14:
Can someone at LEAST tell me who made the ammoguns script so I can ask them? (the one that reloads when you press l) |
| Reinforcements:
The revolver uses reloading, you can manually reload with right click. |
| takato14:
--- Quote from: Reinforcements on August 03, 2010, 08:22:39 AM ---The revolver uses reloading, you can manually reload with right click. --- End quote --- Not what Im talking about.... the support_ammoguns script. I cant get it to work. Does anyone know how to make it work? |
| Munkey:
You have no ::Onspawn or whatever it is, let me look real quick. Edit:You don't have this part in the ::OnMount script. This is the part that gives it the ammo in the first place. --- Code: ---function WeaponImage::onMount(%this,%obj,%slot) { Parent::onMount(%this,%obj,%slot); if(%this.item.maxAmmo >= 0 && (%obj.currTool == -1 || %obj.toolAmmo[%obj.currTool] $= "")) { %obj.toolAmmo[%obj.currTool] = %this.item.maxAmmo; } } --- End code --- |
| Navigation |
| Message Index |
| Next page |
| Previous page |