btech.xcode_value_ref

Reads a script-visible native field from a unit template.

Function

Synopsis

btech.xcode_value_ref( reference, name )

Arguments

string reference
The unit template reference.
string name
The field name.

Returns

string result
The handler’s serialized text result.

Notes

This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error. The reference is resolved from the configured unit-template database.

See Also