Difference between revisions of "NDDynamicSpawners"
(Created page with "<p style="width:60%;margin: 0 auto">[Main] [Templates]</p> <p style="color: #DDDD88;font-size: 22px;width:60%;margin: 0 auto">Exa...") |
|||
Line 5: | Line 5: | ||
<ObjectTemplate> | <ObjectTemplate> | ||
<ClientId>2</ClientId> | <ClientId>2</ClientId> | ||
− | < | + | <Name>Dynamic Rebel Spawner</Name> |
− | <Name> | + | <ObjectVariableComponent> |
− | < | + | <DoubleVariable Name="spawnRadius">20</DoubleVariable> |
− | <ObjectVariableComponent | + | <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> | <ScriptEngineComponent> | ||
− | <LuaModule Name=" | + | <LuaModule Name="dynamic_spawn_controller_rebels"> |
<Initializer> | <Initializer> | ||
{ | { | ||
− | + | TriggerSpawnTeamType = "Rebel", | |
− | + | TriggerDeathRadius = 30, | |
+ | TriggerChance = 0.1, | ||
+ | TeamType = "Rebel", | ||
+ | SpawnObjVars = { | ||
+ | ["AI-StationedLeash"] = false, | ||
+ | ["AI-LeashDistance"] = 20, | ||
+ | ["AI-CanWander"] = true, | ||
+ | } | ||
} | } | ||
</Initializer> | </Initializer> | ||
− | </LuaModule> | + | </LuaModule> |
</ScriptEngineComponent> | </ScriptEngineComponent> | ||
</ObjectTemplate> | </ObjectTemplate> | ||
</div> | </div> |
Revision as of 16:32, 7 December 2019
Example Controller ObjectTemplate
Below is a sample controller object template file.
<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>