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
CombatEngageSchedule
chevron_left
Classes
class
CombatEngageSchedule
Constructors
functions
CombatEngageSchedule
Properties
data_object
EngageSpeed
data_object
Interruptible
data_object
Priority
data_object
Target
data_object
Weapon
Methods
lock
OnEnd
lock
OnStart
lock
ShouldCancel
CombatEngageSchedule
Engages a visible player: close the gap, fire a burst, pause, then reposition to a flanking point. Cancels immediately if the target leaves sight.
class
Sandbox.Npcs.Schedules
.
account_tree
extends
BaseSchedule
Sandbox.Engine
build
Constructors
1
CombatEngageSchedule
(
)
data_object
Properties
5
EngageSpeed
float
Speed the NPC moves when engaging.
Interruptible
bool
Priority
int
Target
GameObject
The player to engage.
Weapon
BaseCombatWeapon
Weapon to fire. Should be a child component on the NPC's GameObject. Its NPC usage decides the engagement range, burst length and the rest between bursts.
functions
Methods
3
OnEnd
(
)
OnStart
(
)
ShouldCancel
(
)
bool
Inheritance
BaseSchedule
CombatEngageSchedule
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.