Skip to content
Gregor Steiner edited this page May 6, 2014 · 1 revision

LivingBase

Shared

CanBreatheWater()

  • Return value: Boolean waterbreath
  • Get if the entity can breathe in water

GetAge()

  • Return value: Number age
  • Return the entitys age

GetAimVector()

  • Return value: Vector vec
  • Returns the aim vector of the direction the entity is looking

GetEyeTrace()

  • Return value: Table trace
  • Returns a trace table using the players eye position and angles

GetHealth()

  • Return value: Number health
  • Return the entity health

GetMaxHealth()

  • Return value: Number health
  • Return the entity max health

IsOnLadder()

  • Return value: Boolean onladder
  • Check if the entity is on a ladder

Kill()

  • Return value: nil
  • Kill the entity

SetHealth(Number health)

  • Return value: nil
  • Set the entity health (reaches from 0 to 20)

Living

Shared

GetAttackTarget()

  • Return value: Entity target
  • Check if the entity is on a ladder

GetAvoidSun()

  • Return value: Boolean avoid sun
  • Return if this NPC keeps away from sunlight

GetAvoidWater()

  • Return value: Boolean avoid water
  • Return if this NPC keeps away from water

GetBreakDoors()

  • Return value: Boolean door breaking
  • Return if this NPC can break down doors

GetCanSwim()

  • Return value: Boolean swimming
  • Return if this NPC can swim

GetExperienceValue()

  • Return value: Number exp
  • Returns how much the entity is worth, experience wise

GetMovementSpeed()

  • Return value: Number speed
  • Return how fast this NPC can move

GetMovementSpeed()

  • Return value: Number speed
  • Return how fast this NPC can move

LookAt(Entity ent)

  • Return value: nil
  • Forces the entity to look at the vector

MoveTo(Boolean state)

  • Return value: nil
  • Set a location this NPC should try to move to

MoveToEntity(Boolean state)

  • Return value: nil
  • Set an entity this NPC should try to move to

SetAge(Number age)

  • Return value: nil
  • Set the entitys age

SetAttackTarget(Living target)

  • Return value: nil
  • Set the target entity to attack

SetAvoidWater(Boolean state)

  • Return value: nil
  • Set if this NPC should keep away from water

SetBreakDoors(Boolean state)

  • Return value: nil
  • Set if this NPC should break down doors

SetCanSwim(Boolean state)

  • Return value: nil
  • Set if this NPC can swim

SetEnterDoors(Boolean state)

  • Return value: nil
  • Set if this NPC can enter doors

SetExperienceValue(Number exp)

  • Return value: nil
  • Set how much the entity is worth, experience wise

SetMovementSpeed(Number speed)

  • Return value: nil
  • Set how fast this NPC will move