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
EmitStimulus
chevron_left
Classes
class
NpcSystem
Constructors
functions
NpcSystem
Properties
data_object
Npcs
Methods
functions
EmitStimulus
functions
SetTagCooldown
EmitStimulus
Broadcast a stimulus into the world. <paramref name="radius" /> is how far it can be sensed; <paramref name="lifetime" /> is how long it lingers (seconds).
method
void
EmitStimulus
(
string
kind
,
Vector3
position
,
GameObject
source
,
float
radius
,
float
lifetime
)
Parameters
Name
Type
Description
kind
string
position
Vector3
source
= null
GameObject
radius
= 1024
float
lifetime
= 1
float
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.