Template:O BaseNPC: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
Line 17: | Line 17: | ||
: Fired when this NPC hears combat sounds. | : Fired when this NPC hears combat sounds. | ||
* '''OnFoundEnemy < | * '''OnFoundEnemy <[[ehandle]]>''' | ||
: Fired when this NPC establishes line of sight to its enemy (outputs entity). | : Fired when this NPC establishes line of sight to its enemy (outputs entity). | ||
Line 26: | Line 26: | ||
: Fired when this NPC loses its enemy. Usually due to the enemy being killed/removed, or because this NPC has selected a newer, more dangerous enemy. | : Fired when this NPC loses its enemy. Usually due to the enemy being killed/removed, or because this NPC has selected a newer, more dangerous enemy. | ||
* '''OnFoundPlayer < | * '''OnFoundPlayer <[[ehandle]]>''' | ||
: Fired when this NPC establishes line of sight to its enemy, and that enemy is a player (outputs player entity). | : Fired when this NPC establishes line of sight to its enemy, and that enemy is a player (outputs player entity). | ||
Revision as of 21:21, 19 January 2006
OnDamaged
- Fired when this NPC takes damage.
- OnDeath
- Fired when this NPC is killed.
- OnHalfHealth
- Fired when this NPC reaches half of its maximum health.
- OnHearWorld
- Fired when this NPC hears a sound (other than combat or the player).
- OnHearPlayer
- Fired when this NPC hears the player.
- OnHearCombat
- Fired when this NPC hears combat sounds.
- OnFoundEnemy <ehandle>
- Fired when this NPC establishes line of sight to its enemy (outputs entity).
- OnLostEnemyLOS
- Fired when this NPC loses line of sight to its enemy.
- OnLostEnemy
- Fired when this NPC loses its enemy. Usually due to the enemy being killed/removed, or because this NPC has selected a newer, more dangerous enemy.
- OnFoundPlayer <ehandle>
- Fired when this NPC establishes line of sight to its enemy, and that enemy is a player (outputs player entity).
- OnLostPlayerLOS
- Fired when this NPC loses line of sight to its enemy, and that enemy is a player.
- OnLostPlayer
- Fired when this NPC loses its enemy, and that enemy was a player. Usually due to the enemy being killed/removed, or because this NPC has selected a newer, more dangerous enemy.
- OnDamagedByPlayer
- Fired when this NPC is hurt by a player.
- OnDamagedByPlayerSquad
- Fired when this NPC is hurt by a player OR by one of the player's squadmates.
- OnDenyCommanderUse
- Fired when this NPC has refused to join the player's squad.
- OnWake
- Fired when this NPC comes out of a sleep state.