Trigger changetarget: Difference between revisions

From Sven Co-op
Jump to navigation Jump to search
Loulimi (talk | contribs)
m Fix grammatical mistakes
Outerbeast (talk | contribs)
 
(One intermediate revision by one other user not shown)
Line 3: Line 3:
}}
}}


The proper method for changing the target-keyvalue of an entity. You should prefer this to using a trigger_changevalue, if you can, because this entity takes several special cases into account.
This entity changes the target keyvalue of an entity. You should generally prefer this to using a trigger_changevalue, if you can, because this entity takes several special cases into account. Be aware however that this entity only work correctly with entities that have a unique name, see note for more details.


== Keyvalues ==
== Keyvalues ==
Line 9: Line 9:
{{Entity_keyvalue|Target|target|Entity whose target will be changed.}}
{{Entity_keyvalue|Target|target|Entity whose target will be changed.}}
{{Entity_keyvalue|New Target|m_iszNewTarget|New "Target" value for targeted entity.}}
{{Entity_keyvalue|New Target|m_iszNewTarget|New "Target" value for targeted entity.}}


{{entity_title}}
{{entity_title}}

Latest revision as of 01:15, 25 May 2026

trigger_changetarget
Type

point

Status

supported

 


This entity changes the target keyvalue of an entity. You should generally prefer this to using a trigger_changevalue, if you can, because this entity takes several special cases into account. Be aware however that this entity only work correctly with entities that have a unique name, see note for more details.

Keyvalues

Target : target

Entity whose target will be changed.

New Target : m_iszNewTarget

New "Target" value for targeted entity.