mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-16 22:15:06 +00:00
Added several projectile functions to ScriptNpc.
This commit is contained in:
1 parent
e6f97784ff
commit
b330678104
2 files changed
+70
No files matched your search
@@ -406,6 +406,55 @@ public class ScriptNpc<T extends EntityNPCInterface> extends ScriptLiving<T> imp
|
||||
npc.stats.aimWhileShooting = aimWhileShooting;
|
||||
}
|
||||
|
||||
public void setMinProjectileDelay(int minDelay){
|
||||
npc.stats.minDelay = minDelay;
|
||||
}
|
||||
public int getMinProjectileDelay(){
|
||||
return npc.stats.minDelay;
|
||||
}
|
||||
|
||||
public void setMaxProjectileDelay(int maxDelay){
|
||||
npc.stats.maxDelay = maxDelay;
|
||||
}
|
||||
public int getMaxProjectileDelay(){
|
||||
return npc.stats.maxDelay;
|
||||
}
|
||||
|
||||
public void setRangedRage(int rangedRange) {
|
||||
npc.stats.rangedRange = rangedRange;
|
||||
}
|
||||
public int getRangedRage() {
|
||||
return npc.stats.rangedRange;
|
||||
}
|
||||
|
||||
public void setFireRate(int rate) {
|
||||
npc.stats.fireRate = rate;
|
||||
}
|
||||
public int getFireRate() {
|
||||
return npc.stats.fireRate;
|
||||
}
|
||||
|
||||
public void setBurstCount(int burstCount) {
|
||||
npc.stats.burstCount = burstCount;
|
||||
}
|
||||
public int getBurstCount() {
|
||||
return npc.stats.burstCount;
|
||||
}
|
||||
|
||||
public void setShotCount(int shotCount) {
|
||||
npc.stats.shotCount = shotCount;
|
||||
}
|
||||
public int getShotCount() {
|
||||
return npc.stats.shotCount;
|
||||
}
|
||||
|
||||
public void setAccuracy(int accuracy) {
|
||||
npc.stats.accuracy = accuracy;
|
||||
}
|
||||
public int getAccuracy() {
|
||||
return npc.stats.accuracy;
|
||||
}
|
||||
|
||||
public String getFireSound() {
|
||||
return npc.stats.fireSound;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user