Template:O BaseNPC:ru: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{ScrollBox|title=BaseNPC| ; <code>OnDamaged</code> : Fired when this NPC takes damage {{activator|damage inflictor}} ; <code>OnDeath</code> : Fired when this NPC is killed {{act...") |
mNo edit summary |
||
Line 32: | Line 32: | ||
; <code>OnWake</code> | ; <code>OnWake</code> | ||
: Fired when this NPC comes out of a sleep state | : Fired when this NPC comes out of a sleep state | ||
{{O Targetname}} | {{O Targetname:ru}} | ||
}} | }} |
Revision as of 01:28, 2 May 2012
BaseNPC:
OnDamaged
- Fired when this NPC takes damage (!activator is the damage inflictor)
OnDeath
- Fired when this NPC is killed (!activator is the killer)
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 <targetname>
- Fired when this NPC establishes line of sight to its enemy
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 <targetname>
- Fired when this NPC establishes line of sight to its enemy, and that enemy is a player
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 (!activator is the attacker or vehicle driver (if friendly fire))
OnDamagedByPlayerSquad
- Fired when this NPC is hurt by a player OR by one of the player's squadmates (!activator is the attacker or vehicle driver (if friendly fire))
OnDenyCommanderUse
- Fired when this NPC has refused to join the player's squad
OnWake
- Fired when this NPC comes out of a sleep state
Targetname:
- OnUser1 to OnUser4
- Вызывается в ответ на входы
FireUser
; (см. Пользовательские вводы и выводы).
- OnKilled (in all games since
)
- Вызывается после уничтожения энтити и удаления её из игры.