NSTrigger: respect the 'message' key with any UseTargets call

This commit is contained in:
Marco Cawthorne 2022-06-22 13:08:37 -07:00
parent 8d16c58862
commit cf5a4da751
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
1 changed files with 4 additions and 0 deletions

View File

@ -45,6 +45,10 @@ NSTrigger::UseTargets(entity act, int state, float fDelay)
eTimer.nextthink = time + fDelay;
eTimer.health = state; /* ugly */
} else {
if (m_strMessage) {
env_message_single(act, m_strMessage);
}
for (entity f = world; (f = find(f, ::targetname, target));) {
NSTrigger trigger = (NSTrigger)f;