Hi 2 all! I need to change the building's footprints via triggers. Or it can be other solution of my problem - need to construct building with "Ignore Placement requirements" via trigger "Issue order" to SCV. Can anybody help me with solution for this question?
So I do have an idea about this, but there are probably better ways than my idea, depending on your needs. First off, I know it's possible to specify certain areas to allow construction and disallow other areas, but I don't know how that's done. If that's all you need, then I would try to figure that out as it's probably the best solution.
The next best option would be to modify the footprint to allow construction at an otherwise non-buildable area. I don't know how to do that either :P
If all else fails, you could try the following. Keep in mind, however, that I haven't tested this so I don't know for sure that it would work. You could create a dummy ability for that SCV that makes the SCV move towards the ordered location but doesn't actually do anything when the SCV gets there. Sooo...basically just a duplicate move ability. Set up a "Unit Uses Ability" trigger that creates the building at "Triggering ability target point" with the "Ignore Placement" option. If you choose to do it this way, the only way I can think of getting the placement model to show would be to set up another trigger. "Unit Uses Ability", location just like in the above, except create placement model at target point. In addition to that trigger, you would need to set up yet another trigger to destroy the model with event "Unit Uses Ability" stage "Generic4 - Cancel". I'm not 100% sure on the ability stages, but I think you would use "Generic6 - Complete" for the trigger that actually places the building and "Generic3 - Execute" for the target / placement model creation trigger. Don't forget to destroy the placement model after you place the building.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hi 2 all! I need to change the building's footprints via triggers. Or it can be other solution of my problem - need to construct building with "Ignore Placement requirements" via trigger "Issue order" to SCV. Can anybody help me with solution for this question?
So I do have an idea about this, but there are probably better ways than my idea, depending on your needs. First off, I know it's possible to specify certain areas to allow construction and disallow other areas, but I don't know how that's done. If that's all you need, then I would try to figure that out as it's probably the best solution.
The next best option would be to modify the footprint to allow construction at an otherwise non-buildable area. I don't know how to do that either :P
If all else fails, you could try the following. Keep in mind, however, that I haven't tested this so I don't know for sure that it would work. You could create a dummy ability for that SCV that makes the SCV move towards the ordered location but doesn't actually do anything when the SCV gets there. Sooo...basically just a duplicate move ability. Set up a "Unit Uses Ability" trigger that creates the building at "Triggering ability target point" with the "Ignore Placement" option. If you choose to do it this way, the only way I can think of getting the placement model to show would be to set up another trigger. "Unit Uses Ability", location just like in the above, except create placement model at target point. In addition to that trigger, you would need to set up yet another trigger to destroy the model with event "Unit Uses Ability" stage "Generic4 - Cancel". I'm not 100% sure on the ability stages, but I think you would use "Generic6 - Complete" for the trigger that actually places the building and "Generic3 - Execute" for the target / placement model creation trigger. Don't forget to destroy the placement model after you place the building.