- Messages
- 55
- Country

Thanks, sorry for my english. It will be a code for the AI version of an aircraft, to spawn every aircraft with different nodes (objects: Doors, chocks, covers...) And, to optimize it a little bit, I'm trying to write the long instruction only once at the begginin of the xml, and use the result of that long instruction, at all other nodes (animations and visibility). The long instruction returns 0 or 1 depending the AI spawned plane position, so every plane spawns with different position objects.I'm not sure what you are trying to do but this has syntax errors:
If I place the long instruction on every node, it yes works properly, but it is not optimal for performance. I've tried to put that value inside myVar to optimize it a little bit, but doesn't work properly, every spawned plane uses the first spawned plane value (position coords).
So I'm trying another method to call the long instrucion value:
<Component ID="Doors">
<UseTemplate Name="xxx" Node="xxx">.....<ANIM_CODE>A
<UseTemplate Name="yyy" Node="yyy">.....<ANIM_CODE>valueNodexxx</ANIM_CODE></UseTemplate>
<UseTemplate Name="zzz" Node="zzz">.....<ANIM_CODE>valueNodexxx</ANIM_CODE></UseTemplate>
<UseTemplate Name="uuu" Node="uuu">.....<ANIM_CODE>valueNodexxx</ANIM_CODE></UseTemplate>
</Component>
Is there someway to call the value of another node?

