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

(code seems to say only npcs will be affected...) |
(It literally changes the target keyvalue, so any entity can be used) |
||
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. This task can also be done using {{ent|AddOutput}}. | {{base point|ai_changetarget}} It's main use is for changing the <code>target</code> keyvalue of NPCs, but it can change the target of any entity if applicable. This task can also be done using {{ent|AddOutput}}. | ||
{{code class|CAI_ChangeTarget|triggers.cpp}} | {{code class|CAI_ChangeTarget|triggers.cpp}} |
Revision as of 00:13, 14 September 2018


Template:Base point It's main use is for changing the target
keyvalue of NPCs, but it can change the target of any entity if applicable. 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.