s&
About
The Project
info
About s&box
map
Roadmap
monitoring
Metrics
Engine startup and usage numbers
Updates
newspaper
Latest News
published_with_changes
Changes
Release-by-release changelog
Games
Browse Games
Discover Games
gamejams
Workshop
Playable
sports_esports
Games
Standalone games and gamemodes
Assets
landscape
Maps
view_in_ar
Models
texture
Materials
apparel
Clothing
apps
Everything
Every asset type in one list
Forum
Learn
Documentation
rocket_launch
Getting Started
docs
Documentation
api
API Reference
Resources
school
Tutorials
manage_search
Code Search
Get s&box
Sign in with Steam
Api
Classes
NpcSystem
chevron_left
Classes
class
NpcSystem
Constructors
functions
NpcSystem
Properties
data_object
Npcs
Methods
functions
EmitStimulus
functions
SetTagCooldown
NpcSystem
Shared NPC coordination for a scene: who is in it, who may speak, and the stimuli NPCs sense.
class
Sandbox.Npcs
.
account_tree
extends
GameObjectSystem
<
T
>
sealed
Sandbox.Engine
build
Constructors
1
NpcSystem
(
scene
)
Creates the scene NPC coordinator.
data_object
Properties
1
Npcs
IReadOnlyCollection`1
NPCs currently registered in the scene.
functions
Methods
2
EmitStimulus
(
kind
,
position
,
source
,
radius
,
lifetime
)
Broadcast a stimulus into the world.
is how far it can be sensed;
is how long it lingers (seconds).
SetTagCooldown
(
position
,
tag
,
duration
,
radius
,
priority
)
Adds a timed tag cooldown around a position.
Inheritance
GameObjectSystem
GameObjectSystem<T>
NpcSystem
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.