This article's documentation is for the "GoldSrc" engine. Click here for more information.

Multi manager (GoldSrc): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
{{stub}}
{{stub}}
{{EntityTabs|multi_manager|goldsrc = 1|source = 1|}}
{{EntityTabs|multi_manager|goldsrc = 1|source = 1|}}
{{entity|type=point|engine=gldsrc|multi_manager|sprite=1}}
{{This is a|e0|engine=gldsrc|name=multi_manager|sprite=1}}
 
==Entity description==


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

Revision as of 01:35, 9 September 2023

Stub

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

Template:EntityTabs

Multi manager.png

multi_manager is an e0 available in all GoldSrc GoldSrc games.

Warning.pngWarning:
  • The {{{engine}}} parameter is inconsistent with the name defined by the {{gldsrc}} template. This can most likely be fixed by setting the value of the {{{engine}}} parameter to GoldSrc.
    If a parameter is consistent but you're still seeing this warning, it may be an issue with the template itself. Please discuss it on the template's talk page.

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 smartedit, 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.
Warning.pngWarning:When the multi_manager clones itself, it takes an additional entity slot in the game for every cloning. If all entity slots are taken up, the game will crash with an error message of ED_Alloc No Free Edicts. There are other ways of looping one multimanager without the need of this flag ticked, such as this one.