Classes
NPC
NPC
is a non-player-character that imitates a player and is able to be manipulated in Clua
This class inherits ActiveInstance
which means that all properties, functions and signals from ActiveInstance can be used.
This class is not completed.
Properties
speed: float
Speed of NPC.
health: int
Health of the npc.
DisplayOnTop: string
The text to display on top of the NPC
DisplayOnTopEnabled: bool
To display text on top of NPC or not.
SitAutomaticallyIfSeatInWay: bool
Functions
MoveTo(Vector3 newLocation)
This function makes the NPC move to a newer location. An example:
Kill()
This function is used to kill the NPC. An example:
Sit(Seat seat = null)
Makes the NPC sit at the place where it is standing or to the seat given in as a parameter (optional). An example:
StandUp()
Makes the NPC standup at the place where it was sitting. An example:
Signals
OnDestinationReached
This signal is called when a NPC has finished moving to its destination. An example:
OnDeath
This signal is called when a NPC dies. An example: