Class Plates_NPC

License Seller NPC

Class Overview

Fields

Plates_NPC.Base The entity base used.
Plates_NPC.Type The type of entity.
Plates_NPC.AutomaticFrameAdvance If frames are automatically advanced.
Plates_NPC.PrintName Client spawn name.
Plates_NPC.Author Author's name.
Plates_NPC.Contact Author's contact.
Plates_NPC.Purpose Fluff text
Plates_NPC.Instructions Fluff text
Plates_NPC.AdminSpawnable If the ent can be spawned by admins.
Plates_NPC.Spawnable If the ent can be spawned.

Methods

Plates_NPC:Initialize() Prepare the entity for use.
Plates_NPC:OnTakeDamage() Hook function called when damage is sent.
Plates_NPC:AcceptInput(n, a, c) Called when an input is sent.
Plates_NPC:SetAutomaticFrameAdvance(bUsingAnim) Setter for AutomaticFrameAdvance

Fields

Plates_NPC.Base
The entity base used.
Plates_NPC.Type
The type of entity.
Plates_NPC.AutomaticFrameAdvance
If frames are automatically advanced.
Plates_NPC.PrintName
Client spawn name.
Plates_NPC.Author
Author's name.
Plates_NPC.Contact
Author's contact.
Plates_NPC.Purpose
Fluff text
Plates_NPC.Instructions
Fluff text
Plates_NPC.AdminSpawnable
If the ent can be spawned by admins.
Plates_NPC.Spawnable
If the ent can be spawned.

Methods

Plates_NPC:Initialize()
Prepare the entity for use.
Plates_NPC:OnTakeDamage()
Hook function called when damage is sent.

Returns:

    boolean If the entity should take damage.
Plates_NPC:AcceptInput(n, a, c)
Called when an input is sent.

Parameters:

  • n string The name of the sent input.
  • a Entity Direct activator.
  • c Entity Primary caller.
Plates_NPC:SetAutomaticFrameAdvance(bUsingAnim)
Setter for AutomaticFrameAdvance

Parameters:

  • bUsingAnim bool If the entity is uses animations.