NSTrigger: respect the 'message' key with any UseTargets call
This commit is contained in:
parent
8d16c58862
commit
cf5a4da751
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue