# IScriptNpc.setNpcSpeed [← IScriptNpc](index.md) · [← Master](../../wiki.md) Parça 3/7 · [önceki](setNpcSpeed-2.md) · [sonraki](setNpcSpeed-4.md) void follow(java.lang.String target) Make NPC follow a target. c.getSubject().follow("@r"); Parameters: target - Target to follow (can be a player name, @r) getFaction java.lang.String getFaction() Returns the faction of the NPC as a string c.send(c.getSubject().getFaction()) setCanBeSteered void setCanBeSteered(boolean enabled) Sets whether the NPC can be steered. c.getSubject().setCanBeSteered(true); canBeSteered boolean canBeSteered() Checks if the NPC can be steered. c.getSubject().canBeSteered(); setSteeringOffset void setSteeringOffset(int index, float x, float y, float z) Sets the steering offset for the NPC. c.getSubject().setSteeringOffset(index, x, y, z); addSteeringOffset void addSteeringOffset(float x, float y, float z) Gets the steering offset of the NPC. c.getSubject().addSteeringOffset(x, y, z); getSteeringOffsets java.util.List getSteeringOffsets() Gets the steering offset of the NPC. c.getSubject().getSteeringOffsets().forEach((offset) -> { c.send(offset.x + ", " + offset.y + ", " + offset.z); }); setNpcSpeed void setNpcSpeed(float speed) Sets the speed of the NPC. c.getSubject().setNpcSpeed(speed); getNpcSpeed float getNpcSpeed() Gets the speed of the NPC. c.getSubject().getNpcSpeed(); setJumpPower void setJumpPower(float jumpHeight) Sets the jump power of the NPC. c.getSubject().setJumpPower(jumpHeight); getJumpPower float getJumpPower() Gets the jump power of the NPC. c.getSubject().getjumpPower(); setInvincible void setInvincible(boolean invincible) Sets whether the NPC is invincible. c.getSubject().setInvincible(true); isInvincible