Template:O CAI BaseNPC: Difference between revisions
Jump to navigation
Jump to search
(----) |
({{minititle|AI_BaseNPC}}) |
||
Line 3: | Line 3: | ||
Add <code>|rappel=1</code> to display the <code>OnRappelTouchdown</code> output. | Add <code>|rappel=1</code> to display the <code>OnRappelTouchdown</code> output. | ||
---- | ---- | ||
</noinclude>{{IO|OnDamaged|Fired when this NPC takes damage.}} | </noinclude>{{minititle|AI_BaseNPC}} | ||
{{IO|OnDamaged|Fired when this NPC takes damage.}} | |||
{{IO|OnDeath|Fired when this NPC is killed.}} | {{IO|OnDeath|Fired when this NPC is killed.}} | ||
{{IO|OnHalfHealth|Fired when this NPC reaches half of its maximum health.}} | {{IO|OnHalfHealth|Fired when this NPC reaches half of its maximum health.}} |
Revision as of 19:09, 4 September 2018
This template is our holder for all outputs assigned through CAI_BaseNPC.
Add |rappel=1
to display the OnRappelTouchdown
output.
AI_BaseNPC:
- 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.
- OnFoundEnemy
- Fired when this NPC establishes 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.
- OnLostEnemyLOS
- Fired when this NPC loses line of sight to its enemy.
- OnFoundPlayer
- Fired when this NPC establishes line of sight to an enemy player.
- OnLostPlayer
- Fired when this NPC loses an enemy player, usually due to the enemy being killed/removed, or because this NPC has selected a newer, more dangerous enemy.
- OnFoundEnemy
- Fired when this NPC establishes line of sight to an enemy player.
- OnHearWorld
- Fired when this NPC hears a sound (other than combat or the player).
Confirm:Must come from an ai_sound?
- OnHearPlayer
- Fired when this NPC hears the player.
- OnHearCombat
- Fired when this NPC hears combat sounds.
- OnDamagedByPlayer
- Fired when this NPC is hurt by a player.
- OnDamagedByPlayerSquad
- Fired when this NPC is hurt by anyone in the player squad.
- OnDenyCommanderUse
- Fired when this NPC has refused to join the player's squad.
- OnRappelTouchdown
- Fires when the NPC is done rappelling.
- OnWake
- Fired when this NPC comes out of a sleep state.
- OnSleep
- Fired when this NPC enters a sleep state.
- OnForcedInteractionStarted
- Fired when the NPC starts a forced interaction.
- OnForcedInteractionAborted
- Fired when the NPC aborts a forced interaction for some reason (target NPC died, couldn't be pathed to, etc).
- OnForcedInteractionFinished
- "NPCs in actbusies can no longer perform dynamic interactions." Todo: What does this mean?