Jump to content

Austin

Member
  • Posts

    400
  • Joined

  • Last visited

Reputation Activity

  1. Like
    Austin reacted to Terra_Incendia in Waffles vs Pancakes   
    All hail the mighty waffle
  2. Like
    Austin got a reaction from Rathlord in Waffles vs Pancakes   
    *cough* waffles are going to win *cough*
  3. Like
    Austin got a reaction from RoboMat in I'm stuck and need other modders help!   
    Alright, apologies.
     
    The weapons weren't actually even getting the ammo.. So I created a new .lua, just to keep separate from the distribution file, and added a new function. I looked through all the files looking for some way of getting the PrimaryHandItem. I found it. I also looked through(with some help from Aricane) stormy's reloading code. Hook.Attack.Add. That was the code I used to trigger on attack. So the code I ended up with was...
    function checkInvForAmmo(character, chargeDelta) local weapon = character:getPrimaryHandItem(); local inventory = character:getInventory(); if weapon:getType() == "bow0" then if inventory:contains("Bolts") then character:DoAttack(chargeDelta); inventory:RemoveOneOf("Bolts"); else character:setPrimaryHandItem(nil); character:say("I'm out of ammo for that weapon!"); end endendHook.Attack.Add(checkInvForAmmo);
  4. Like
    Austin got a reaction from Terra_Incendia in Waffles vs Pancakes   
    Waffles are amazing. I just love them. I was once sick, and they carried me to the doctor. 
  5. Like
    Austin got a reaction from Rathlord in Waffles vs Pancakes   
    Waffles are amazing. I just love them. I was once sick, and they carried me to the doctor. 
×
×
  • Create New...