1.2 KiB
IScriptNpc.setNpcSpeed
Parça 7/7 · önceki
var doesLookAtPlayer = c.getSubject().doesLookAtPlayer();
Returns: true if the NPC looks at the player, false otherwise.
setLookAtPlayer
void setLookAtPlayer(boolean lookAtPlayer)
Sets the status of the NPC's behavior to look at the player.
c.getSubject().setLookAtPlayer(true);
Parameters: lookAtPlayer - the new status for the NPC's behavior to look at the player.
removePatrolPoint
void removePatrolPoint(int index)
Removes a patrol point at a certain indext from the NPC.
c.getSubject().removePatrolPoint(0);
Parameters: index - index of the patrol point to be removed
removePatrolPoint
void removePatrolPoint(int x, int y, int z)
Removes a patrol point at a certain position from the NPC.
var npc = c.getSubject(); var pos = npc.getPosition(); npc.removePatrolPoint(pos.x, pos.y, pos.z);
Parameters: x - x coordinate y - y coordinate z - z coordinate
clearPatrolPoints
void clearPatrolPoints()
Removes all NPC's patrol points.
c.getSubject().clearPatrolPoints();