Placement Instructions
This mod adds instructions to place buildings that are a copy of an existing entity and to get information about the placement of entities.
Instructions:
- Place construction (Entity)
- Get Placed Location
- Get Rotation
- Get Size
Works as the "Place construction" but you can pass an entity and it places a construction site with a copy of the input entity. It also uses the selected blueprint as a backup if no entity is passed.
Parameters:
- Entity: The entity to take as the blueprint. If empty, the selected blueprint will be used.
- Coordinate: Target location, or at currently location if not specified.
- Rotation: The rotation of the building (0: North, 1: West, 2: South, 3: East, <0: Keep original). Coordinates would always be at top left of the construction, regardless of the rotation.
- Rally point: This will be set as the GOTO register of the new entity. Leave empty if you don’t want to overwrite the register.
- Construction Site: The Construction site entity (if placed).
- Priority: The priority of the Construction site (high priority and/or pause).
The goto register is pretty much useless in buildings, but you can always use it to initialize behaviors, like with the rally point on units.
The instruction redirects the flow if the building could not be build.
Gets the coordinate of the top-left tile of a placed building or entity.
Gets the rotation of a placed building or entity. (0: North, 1: West, 2: South, 3: East)
Gets the size of a placed building or entity in its current rotation. It also works with unit types.
- Size: Number of tiles. And X/Y size as a coordinate.
- X Size: X size in the current rotation.
- Y Size: Y size in the current rotation.