(info) Other great resources: Official JS API docs, Scripting Forum

addStructure()

addStructure(structure type, player, x, y)

Create a structure on the given position. Returns true on success.

in wz3.2+ returns structure object if successful or null if failed.