====== cPawn ======
cPawn is a controllable pawn object, controlled by either AI or a player. cPawn inherits all functions and members of [[api:centity]]

===== Class Definition =====
^ Function ^ Return type ^
| TeleportToEntity**(** [[cEntity]] a_Entity **)** | void |
| TeleportTo**(** double a_PosX, double a_PosY, double a_PosZ **)** | void |
| Heal**(** int a_Health **)** | void |
| TakeDamage**(** int a_Damage, [[cEntity]] a_Instigator **)** | void |
| KilledBy**(** [[cEntity]] a_Killer **)** | void |
| GetHealth**()** | int |

===== Inherited Functions =====
[[cEntity]]
{{page>api:centity#class_definition&noheader&noeditbtn}}
===== Functions =====
==== TeleportTo() ====
Teleports the pawn to a [[api:centity]] or position
==== Heal() ====
Heals the pawn by an amount of points
==== TakeDamage() ====
Damages the pawn for an amount of points. ''a_Instigator'' is the [[api:centity]] that dealt the damage
==== KilledBy() ====
Kills the pawn. ''a_Killer'' is the killer [[api:centity]]
==== GetHealth() ====
Returns the current health points of the pawn