Code: Select all
<?xml version="1.0" encoding="iso-8859-1" ?>
<ZApplication Name="App" Caption="ZGameEditor application" FileVersion="2">
<Content>
<Model Name="m_Base">
<Definitions>
<Variable Name="timer_Expire"/>
</Definitions>
<OnUpdate>
<Condition Expression="return (timer_Expire);">
<OnTrue>
<RemoveModel/>
</OnTrue>
</Condition>
</OnUpdate>
</Model>
<Model Name="m_Explosion" BaseModel="m_Base">
<OnUpdate>
<AnimatorSimple Duration="1" AutoStart="255" ToValue="1"/>
</OnUpdate>
<OnRender>
<Condition Expression="return (timer_Expire>0.2 && timer_Expire<0.7);">
<OnTrue>
<UseMaterial/>
<RenderNet/>
</OnTrue>
</Condition>
</OnRender>
</Model>
<Material Name="Material1"/>
</Content>
</ZApplication>
This might look like just a minor nuisance in this particular code above, but some models "flash" more than others and this makes it unpleasant to work. Anyway I am not sure this is happening to anybody else other then my computer & me, so just to show what I'm talking about here is a recording. So are such components meant to always be kept disabled in the Project Tree? (I assume I am not expected to always make a local copy of the timer variable in base model

