Yes u pay?
|
I want my crossbow to attack once then stop attacking
This is my code
anyone have any idea? i am using delta sourceif (UseCrossBow) {
HasBolts = false;
CheckBolts();
ResetAttack();
//CalculateRange();
hitDiff = misc.random(maxRangeHit());
}
Code:public boolean usedCrossBow = false;Code:if (UseCrossBow) { if (usedCrossBow == false) { HasBolts = false; CheckBolts(); ResetAttack(); hitDiff = misc.random(maxRangeHit()); usedCrossBow = true; } }
if i removed reset attack it would be normal....
Try
?Code:ResetAttack = false;
You have to reset range so something like resetattack = false yeh
finally fixed my errors
got it working for npcs...
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |