Having a Created Peasant Construct a Barracks

Hello! I have had an issue with the world editor. I am trying to create a trigger where upon the death of a unit, a peasant in a region is created and will construct a barracks. I was able to create the peasant without an issue, but I cannot figure out how to order him to begin constructing a barracks. Is this possible? If so, how?

Before I start, you can go to xhttps://www.hiveworkshop.com/ and post on forums ( xhttps://www.hiveworkshop.com/forums/world-editor-help-zone.98/) about any issues regarding the world editor… the community is really helpful there.

The trigger should be something like this :

Event - A unit dies (generic)
Condition - Triggering unit equal to (the unit that died - use variables or select a specific unit on the map)
Action - Create (peasant) at the center of (your region)

Now you want an “Issue unit targeting a point”
It should be something like :

Unit - Order “your peasant variable or last created unit” to build a Barracks at (center of the “desired region”)

NOTE : The peasant needs to have the ability to build the barracks, and I think resources are needed as well.

Sorry if I couldn’t help more, I’m at work so I’m unable to access the editor now. Let me know if this works.

EDIT : I don’t ever use specific unit event, but you can maybe use it and skip the condition all together. Actions are the same.