NDDynamicSpawnerHUDVars

From Legends of Aria Admin and Modding Wiki
Revision as of 06:18, 9 December 2019 by Gizmo (talk | contribs)
Jump to: navigation, search

[Main] [Dynamic Spawners]

About HUDVars

HudVars is the way to tell the new HUD element what to display when players are near your dynamic spawner. The dynamic window function UpdateDynamicEventHUD is located in the hud.lua

<ObjectTemplate>
	<ClientId>320</ClientId>
	<Name>[FF9500]Candle[-]</Name>
	<SharedStateEntry name="Weight" type="int" value="1"/>
	<ObjectVariableComponent>					
    	<StringVariable Name="PluralName">Candles</StringVariable>
		<BoolVariable Name="Worthless">true</BoolVariable>
		<StringVariable Name="ResourceType">Candle</StringVariable>
   	</ObjectVariableComponent>		
	<ScriptEngineComponent>
		<LuaModule Name="stackable" />
	</ScriptEngineComponent>
</ObjectTemplate>