<li><aclass="backlink"title="Click to do a full-text search for this title"href="./Entity_FuncSpawner?action=fullsearch&value=linkto%3A%22Entity+FuncSpawner%22&context=180">Entity FuncSpawner</a></li>
<spanclass="anchor"id="line-2"></span><spanclass="anchor"id="line-3"></span><pclass="line867"><strong><ahref="./LevelEditor.html">LevelEditor</a> Info:</strong><spanclass="anchor"id="line-4"></span><spanclass="anchor"id="line-5"></span><ul><li><pclass="line891"><strong>Usage:</strong> Spawns specified entities. Target any number of <ahref="./Entity_TargetNull.html">target_nulls</a> as possible spawn locations. <spanclass="anchor"id="line-6"></span></li><li><pclass="line891"><strong>def_spawn:</strong> Set to the classname of the entity to be spawned (for example, 'def_spawn_1' '<ahref="./Entity_MonsterBerserker.html">monster_berserker</a>'). Increment in the form def_spawn_X to spawn multiple types of entities from a single spawner. <spanclass="anchor"id="line-7"></span></li><li><pclass="line891"><strong>count:</strong> Number of entities to spawn before being used up. Defaults to -1 (spawn infinitely). <spanclass="anchor"id="line-8"></span></li><li><pclass="line891"><strong>max_active:</strong> If there are more than this number of entities from this spawner active, spawning will pause. Defaults to 4. <spanclass="anchor"id="line-9"></span></li><li><pclass="line891"><strong>delay:</strong> Time between spawning. Defaults to 2. <spanclass="anchor"id="line-10"></span></li><li><pclass="line891"><strong>auto_target:</strong> If set to 1, spawned enemies will automatically target their nearest foe. Defaults to 1. <spanclass="anchor"id="line-11"></span></li><li><pclass="line891"><strong>face_enemy:</strong> If set to 1, spawned enemies will be facing their enemy when they spawn. Defaults to 0. <spanclass="anchor"id="line-12"></span></li><li><pclass="line891"><strong>call:</strong> Script function to be called at the time of spawn. The entity parameter will be the spawner itself. <spanclass="anchor"id="line-13"></span></li><li><pclass="line891"><strong>call_spawned:</strong> Script function to be called at the time of spawn. The entity parameter will be the spawned entity. <spanclass="anchor"id="line-14"></span></li><li><pclass="line891"><strong>script_used_up:</strong> Script function to be called when the spawner has exhausted its available enemies. <spanclass="anchor"id="line-15"></span></li><li><pclass="line891"><strong>skipVisible:</strong> If set to 1, spawn targets will be skipped if the player can see them (in PVS). Defaults to 1. <spanclass="anchor"id="line-16"></span></li><li><pclass="line891"><strong>trigger_only</strong> If set to 1 the spawner will only spawn when triggered. Each trigger will spawn 1 enemy. <spanclass="anchor"id="line-17"></span></li><li><pclass="line891"><strong>waves:</strong> Number of enemies to spawn simultaneously. Defaults to 1. <spanclass="anchor"id="line-18"></span></li><li><pclass="line891"><strong>remove:</strong> If set to 1 the spawner will be removed when triggered off. Defaults to 1. <spanclass="anchor"id="line-19"></span></li><li><pclass="line891"><strong>target def_spawn:</strong> Set this on the spawn target to override the spawn type of the spawner for the spawn target. Ex: Targets set to "def_spawn" "<aclass="nonexistent"href="./Entity_MonsterGrunt.html">monster_grunt</a>" will only spawn <aclass="nonexistent"href="./Entity_MonsterGrunt.html">Grunts</a>. <spanclass="anchor"id="line-20"></span></li><li><pclass="line891"><strong>target remove:</strong> If set on a spawn target, target will be removed after it has been used. Defaults to 0. <spanclass="anchor"id="line-21"></span><spanclass="anchor"id="line-22"></span></li></ul><pclass="line867"><strong>Additional Information:</strong><spanclass="anchor"id="line-23"></span><spanclass="anchor"id="line-24"></span><ul><li>All keys prefixed with 'spawn_' will be copied over directly without the spawn_ to newly created enemies. spawn_target, for example, will set the spawned entity's target. <spanclass="anchor"id="line-25"></span></li><li>Any fields on the target_nulls prefixed with 'spawn_' will also be copied over. <spanclass="anchor"id="line-26"></span></l
<li><ahref="http://moinmoin.wikiwikiweb.de/">MoinMoin Powered</a></li><li><ahref="http://www.python.org/">Python Powered</a></li><li><ahref="http://validator.w3.org/check?uri=referer">Valid HTML 4.01</a></li>