trigger_changealias

A trigger_changealias points an info_alias at a new name or entity when you trigger it, and from
then on, every *alias in the map means the new name or entity.
Attributes
KeyDescriptionDefault
Name
targetnameTriggering the entity by this name changes the alias. See Common keys.
Alias to affect
targetNames the alias, by its plain name without a *. If several aliases have the name, it changes all of them.
String to Set
netnameSets what the alias points to after the change.
- A name, a wildcard such as
room1_*, a member of aninfo_groupsuch asgrp.door, or another alias such as*other- The alias keeps this text. With*other, it followsothereach timeotherchanges later !activatoror*locus- The entity that started the chain of triggers, such as the player who pressed a button, even if that entity has no name!caller- The entity that fired thetrigger_changealias
Flags
1Resolve referencesThe entity looks up String to Set at once, and the alias keeps the first entity it finds. Later changes to another alias named in it don't change this one. If the entity finds nothing, the alias points nowhere
2Debug ModeWith developer 1 set in the console, the console shows each change it makes
Notes
- If you trigger it while the game fires the targets of another trigger, the change starts when that firing is done
- If no
info_aliashas the name in Alias to affect, nothing changes. Withdeveloper 1set in the console, the console shows a message about it - It can't change a
multi_alias
See also
- What * means in a name - wildcards, aliases and the built-in names
info_alias- the alias it changesinfo_group- points an alias at a group when you trigger it- Entity triggering - how
*nameworks
Changes since 1.38
trigger_changealiasis new in SBO 2.1.0
