Ai changetarget: Difference between revisions
Jump to navigation
Jump to search
m (removed {{DISPLAYTITLE}}, covered by the hl2 point template) |
(updates) |
||
| Line 1: | Line 1: | ||
{{hl2 point|ai_changetarget}} | {{hl2 point|ai_changetarget}} It's main use is for changing the <code>target</code> keyvalue of NPCs. It can be used for changing any entity however. The function can also be done using {{ent|AddOutput}}. | ||
{{code class|CAI_ChangeTarget|triggers.cpp}} | |||
{{ | ==Keyvalues== | ||
{{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 BaseEntity|base=1}} | |||
==Inputs== | |||
== Inputs == | |||
{{IO|Activate|Trigger the target change.}} | {{IO|Activate|Trigger the target change.}} | ||
{{I BaseEntity|base=1}} | |||
== Outputs == | ==Outputs== | ||
{{O | {{O BaseEntity}} | ||
[[Category:AI]] | [[Category:AI]] | ||
Revision as of 15:13, 1 September 2018
Template:Hl2 point It's main use is for changing the target keyvalue of NPCs. It can be used for changing any entity however. The function can also be done using AddOutput.
Keyvalues
- Target (target) ([todo internal name (i)]) <targetname>
- Entity(s) that should have
targetchanged.
- NewTarget (m_iszNewTarget) ([todo internal name (i)]) <targetname>
- New
targetnamefor the targeted entity(s) to target.
Inputs
- Activate
- Trigger the target change.