Script Name : kjs_worker_npc
Version : 1.30
UPDATED : Version 1.30 adds the ability to customize the animations and strings
spoken at each individual workstation if desired.
Fully backward-compatable with older NPCs using the script with no modifications
needed.
----
Purpose : This heavily commented script allows you to drop down an NPC and a few
waypoints and placeables and have the NPC randomly move between these
"workstations" performing animations. What animations are played are
customizable if you wish to use an on-spawn script.
This version of the script can directly replace the old version with no changes
to your existing workstations and NPCs. They simply won't use the new
functionality unless you update them to do so.
New in this version: The 1.20 update includes these new features:
- Minimum Wait Time : Setting a variable on the NPC will cause them to wait a
specified number of heartbeats before they consider changing workstations.
Useful if your workstations are more than one heartbeat away from each other to
keep your NPCs from bouncing around constantly.
- "No Repeat" : By setting a variable, the NPC will not choose the same
workstation twice in a row.
- Speak Strings : An easy way to get your worker NPC to randomly speak phrases.
The speak strings are treated just like animations, and are set up by setting a
few local variables. You can exclude workstations individually from string
speaking by marking them "silent" workstations.
The script can be downloaded here
Click Here
[ Edited By Krebbs: Sunday, 07 July 09:07PM (GMT) ]