Default Inputs (Citizen Derivative)

Companion NPC:

  • RemoveFromPlayerSquad
    Removes the NPC from the player's squad.
  • StartPatrolling
    Makes the NPC start randomly patrolling the area.
  • StopPatrolling
    Stops the NPC's patrolling behavior.
  • GiveWeapon <classname>
    Gives the NPC the specified weapon.

(top)

  • SetCommandable
    Forces the NPC to be commandable by the player.
  • SetMedicOn
    Sets the NPC to act as a medic to nearby friendlies.
  • SetMedicOff
    Stops the NPC from acting as a medic.
  • SetAmmoResupplierOn
    Sets the NPC to give ammo to friendlies. Won't work if AmmoSupply isn't set.

(top)

  • SetAmmoResupplierOff
    Stops the NPC from acting as an ammo carrier.
  • OutsideTransition
  • SetReadinessLow
    The NPC will act as if the area holds little or no danger, as they do by default. The NPC will be upright with their weapon unshouldered and held across their chest.
  • SetReadinessMedium
    The NPC will act as if the area may be dangerous, such as when they hear shots. The NPC will be upright with their weapon unshouldered and facing out.

(top)

  • SetReadinessHigh
    The NPC will act as if they're in direct danger, such as when they've seen an enemy. The NPC will be hunched over with their weapon shouldered (if possible) and facing out.
  • LockReadiness <float>
    The NPC's current state of readiness is locked in for a number of seconds. A value of -1 will lock it forever.
  • GiveWeapon <classname>
    Gives the NPC the specified weapon.
  • EnableWeaponPickup
    The NPC can swap out or pick up weapons as they normally would.

(top)

  • DisableWeaponPickup
    The NPC cannot pick up other weapons even if they don't have one.
  • SetExpressionOverride
  • SetHealth <integer>
    Sets the health of the NPC.
  • SetSquad <string>
    Sets the squad of the NPC.

(top)

  • Use
    The NPC acts as if the player has "used" them.
  • AddContext <key>:<value>
    Adds to the entity's list of response contexts. See Response System.
  • RemoveContext
    Remove a context from this entity's list. The name should match the key of an existing context.
  • ClearContext
    Removes all contexts from this entity's list.

(top)


Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License