build Constructors 1

data_object Properties 18

AimSpreadScale
float
Skill multiplier on the weapon's NPC spread - 1 is a average shot, lower is more accurate.
CalloutRange
float
Allies of the same faction within this range are told where a spotted hostile is.
FollowDistance
float
How close to its Sandbox.Npcs.BaseCombatNpc.Leader the NPC follows before stopping.
IdleBehaviour
IdleBehaviours
What to do when there's nothing going on: hold the post or patrol around it.
Inventory
BaseInventoryComponent
The inventory this NPC holds its weapons in: the one on its GameObject, or a Sandbox.Npcs.BaseNpcInventory the host adds when it has a weapon and no inventory. Null until then.
Leader
GameObject
Who this NPC follows when it is not fighting or investigating, if anyone. Set it on the host.
PainLines
List`1
Said now and then when hurt, one at random. Empty stays silent.
PatrolLines
List`1
Said now and then while patrolling, one at random. Empty stays silent.
PatrolRadius
float
How far from its post the NPC wanders when it patrols.
ReactionTimeAlert
Vector2
Seconds (min, max) to react to a fresh contact when already alert - weapon up, searching or fighting.
ReactionTimeRelaxed
Vector2
Seconds (min, max) to react to a fresh contact when caught at ease - weapon lowered.
RelaxDelay
float
How long the weapon stays up after the last sign of trouble before the NPC relaxes.
SearchTimeout
float
How long after the last intel on a hostile (seen, heard or called out) to keep searching for it.
SpeedVariation
float
Each soldier moves up to this much faster or slower than the rest (0.05 = ±5%), so a squad doesn't move in lockstep. Keep it small - too much pushes a walk into a jog.
SpotLines
List`1
Said on spotting a fresh contact, one at random. Empty stays silent.
TauntLines
List`1
Said now and then between bursts, one at random. Empty stays silent.
Weapon
BaseCombatWeapon
The weapon this NPC uses to attack: the one it starts with, then whichever is out of its Sandbox.Npcs.BaseCombatNpc.Inventory. Its NPC usage decides the engagement range and burst cadence - the same soldier fights differently with a shotgun than an SMG.
WeaponChoices
List`1
Weapon prefabs to arm this NPC with - one is picked at random when it spawns, replacing Sandbox.Npcs.BaseCombatNpc.Weapon. Empty keeps the prefab's weapon.

Inheritance

people
Log in to reply
You can't reply if you're not logged in. That would be crazy.