Multi manager (GoldSrc): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Added more info as well as flag and keyvalue.)
(spelling, incorrect statement about multithreaded flag removed (see https://github.com/ValveSoftware/halflife/blob/master/dlls/triggers.cpp#L398), reworked description, changed type of target delay from integer to float)
Line 4: Line 4:
==Entity description==
==Entity description==


Let you activate various triggers and entities at the same time.
Lets you trigger multiple entities, potentially with a delay before fire for each targeted entity.


To add outputs to it, you must first turn off smart edit, then add keyvalue pairs for the targets. The "key" is the [[targetname]] of the entity you want to target. The "value" is the delay in seconds before the entity is being targeted after the <code>multi_manager</code> is targeted itself. The same targetname can be fired multiple times at different delays, however the keyvalue will become ''targetname#1'' and so on.
To trigger an entity with it, you must first turn off smart edit, then add keyvalue pairs for the targets. The "key" is the [[targetname]] of the entity you want to target. The "value" is the delay in seconds before the entity is triggered after the <code>multi_manager</code> itself has been triggered. The same targetname can be targeted multiple times at different delays, however the keyvalue will become ''targetname#1'' and so on.


A maximum of 16 targets can exist for a single <code>multi_manager</code>.
A maximum of 16 targets can exist for a single <code>multi_manager</code>.
Line 13: Line 13:
{{Hl1 kv targetname}}
{{Hl1 kv targetname}}
{{ScrollBox|title=Targets|
{{ScrollBox|title=Targets|
; Any other entity's [[targetname]] <code><[[integer]]></code>
; Any other entity's [[targetname]] <code><[[float]]></code>
: The entity targetnames to be fired by this <code>multi_manager</code>. The key is the targetname of another entity, and the value is the delay in seconds. Up to 16 targets in the queue can exist.{{note|These keyvalues must be added manually without smart edit.}}}}
: The entity targetnames to be fired by this <code>multi_manager</code>. The key is the targetname of another entity, and the value is the delay in seconds. Up to 16 targets in the queue can exist.{{note|These keyvalues must be added manually without smart edit.}}}}


==Flags==
==Flags==
* 1: Multithreaded - This allows the <code>multi_manager</code> to be targeted again after it has been targeted once, but before all of the targets in it's queue have been fired. What it does is creating a copy of itself that will remain in the map and can cuase the entity count rasing drasticly if improperly used and may eventually reach the entity limit.
* 1: Multithreaded - This allows the <code>multi_manager</code> to be targeted again after it has been targeted once, but before all of the targets in its queue have been fired. It does this by creating a clone of itself that will trigger all targets and then remove itself. This can cause a noticeable increase in the number of entities if the manager has targets with long delays.
[[Category:Half-Life]][[Category:Half-Life Entities]]
[[Category:Half-Life]][[Category:Half-Life Entities]]

Revision as of 14:55, 14 December 2015

Stub

This article or section is a stub. You can help by expanding it.

Template:Hl1 series point

Entity description

Lets you trigger multiple entities, potentially with a delay before fire for each targeted entity.

To trigger an entity with it, you must first turn off smart edit, then add keyvalue pairs for the targets. The "key" is the targetname of the entity you want to target. The "value" is the delay in seconds before the entity is triggered after the multi_manager itself has been triggered. The same targetname can be targeted multiple times at different delays, however the keyvalue will become targetname#1 and so on.

A maximum of 16 targets can exist for a single multi_manager.

Key Values

Name (targetname) <string>
The targetname that other entities refer to this entity by.
Targets:
Any other entity's targetname <float>
The entity targetnames to be fired by this multi_manager. The key is the targetname of another entity, and the value is the delay in seconds. Up to 16 targets in the queue can exist.
Note.pngNote:These keyvalues must be added manually without smart edit.

Flags

  • 1: Multithreaded - This allows the multi_manager to be targeted again after it has been targeted once, but before all of the targets in its queue have been fired. It does this by creating a clone of itself that will trigger all targets and then remove itself. This can cause a noticeable increase in the number of entities if the manager has targets with long delays.