-
Notifications
You must be signed in to change notification settings - Fork 6
Living
Gregor Steiner edited this page May 6, 2014
·
1 revision
- Return value: Boolean waterbreath
- Get if the entity can breathe in water
- Return value: Number age
- Return the entitys age
- Return value: Vector vec
- Returns the aim vector of the direction the entity is looking
- Return value: Table trace
- Returns a trace table using the players eye position and angles
- Return value: Number health
- Return the entity health
- Return value: Number health
- Return the entity max health
- Return value: Boolean onladder
- Check if the entity is on a ladder
- Return value: nil
- Kill the entity
SetHealth(Number health)
- Return value: nil
- Set the entity health (reaches from 0 to 20)
- Return value: Entity target
- Check if the entity is on a ladder
- Return value: Boolean avoid sun
- Return if this NPC keeps away from sunlight
- Return value: Boolean avoid water
- Return if this NPC keeps away from water
- Return value: Boolean door breaking
- Return if this NPC can break down doors
- Return value: Boolean swimming
- Return if this NPC can swim
- Return value: Number exp
- Returns how much the entity is worth, experience wise
- Return value: Number speed
- Return how fast this NPC can move
- 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