Ai changetarget: Difference between revisions
Jump to navigation
Jump to search

(not hl2-only) |
(code seems to say only npcs will be affected...) |
||
Line 1: | Line 1: | ||
{{lang|Ai changetarget}} | {{lang|Ai changetarget}} | ||
{{base point|ai_changetarget}} It's main use is for changing the <code>target</code> keyvalue of NPCs. | {{base point|ai_changetarget}} It's main use is for changing the <code>target</code> keyvalue of NPCs. This task can also be done using {{ent|AddOutput}}. | ||
{{code class|CAI_ChangeTarget|triggers.cpp}} | {{code class|CAI_ChangeTarget|triggers.cpp}} | ||
Line 7: | Line 7: | ||
{{KV|Target (target)|target_destination|Entity(s) that should have <code>target</code> changed.}} | {{KV|Target (target)|target_destination|Entity(s) that should have <code>target</code> changed.}} | ||
{{KV|NewTarget (m_iszNewTarget)|target_destination|New <code>targetname</code> for the targeted entity(s) to target.}} | {{KV|NewTarget (m_iszNewTarget)|target_destination|New <code>targetname</code> for the targeted entity(s) to target.}} | ||
{{KV BaseEntity | {{KV BaseEntity|css=1}} | ||
==Inputs== | ==Inputs== | ||
{{IO|Activate|Trigger the target change.}} | {{IO|Activate|Trigger the target change.}} | ||
{{I BaseEntity | {{I BaseEntity|prel4d=1}} | ||
==Outputs== | ==Outputs== | ||
{{O BaseEntity}} | {{O BaseEntity|l4d=1}} | ||
[[Category:AI]] | [[Category:AI]] | ||
[[Category:Half-Life 2 Entities]] | |||
[[Category:Alien Swarm Entities]] |
Revision as of 23:20, 13 September 2018


Template:Base point It's main use is for changing the target
keyvalue of NPCs. This task can also be done using AddOutput.
Keyvalues
- Target (target) ([todo internal name (i)]) <targetname>
- Entity(s) that should have
target
changed.
- NewTarget (m_iszNewTarget) ([todo internal name (i)]) <targetname>
- New
targetname
for the targeted entity(s) to target.
Inputs
- Activate
- Trigger the target change.