Difference between revisions of "NDDynamicSpawners"
Line 9: | Line 9: | ||
<DoubleVariable Name="spawnRadius">20</DoubleVariable> | <DoubleVariable Name="spawnRadius">20</DoubleVariable> | ||
<DoubleVariable Name="SpawnRateIncrease">1.03</DoubleVariable> | <DoubleVariable Name="SpawnRateIncrease">1.03</DoubleVariable> | ||
− | + | <StringVariable Name="spawnEffect">none</StringVariable> | |
− | + | <StringVariable Name="spawnMode">Progressive</StringVariable> | |
− | + | <StringVariable Name="lootMode">Weighted</StringVariable> | |
− | + | <DoubleVariable Name="progressModifier">2.5</DoubleVariable> | |
</ObjectVariableComponent> | </ObjectVariableComponent> | ||
<ScriptEngineComponent> | <ScriptEngineComponent> |
Revision as of 16:36, 7 December 2019
Example Dynamic Spawner Template
Below is an example of a typical Dynamic Spawner template file for Rebels.
<ObjectTemplate> <ClientId>2</ClientId> <Name>Dynamic Rebel Spawner</Name> <ObjectVariableComponent> <DoubleVariable Name="spawnRadius">20</DoubleVariable> <DoubleVariable Name="SpawnRateIncrease">1.03</DoubleVariable> <StringVariable Name="spawnEffect">none</StringVariable> <StringVariable Name="spawnMode">Progressive</StringVariable> <StringVariable Name="lootMode">Weighted</StringVariable> <DoubleVariable Name="progressModifier">2.5</DoubleVariable> </ObjectVariableComponent> <ScriptEngineComponent> <LuaModule Name="dynamic_spawn_controller_rebels"> <Initializer> { TriggerSpawnTeamType = "Rebel", TriggerDeathRadius = 30, TriggerChance = 0.1, TeamType = "Rebel", SpawnObjVars = { ["AI-StationedLeash"] = false, ["AI-LeashDistance"] = 20, ["AI-CanWander"] = true, } } </Initializer> </LuaModule> </ScriptEngineComponent> </ObjectTemplate>