(Hang about: I just realised I posted this in the wrong section. How does one delete a post so I can repost it in the right section?)
What ho!
I'm having a bit of a tiff down here with my triggers, would highly appreciate your help!
Here's basically what I'd like the code to do:
- Unit begins construction
- Check if Constructing Structure is placed next to Unit-type of unit "Road" (It's a building.. Unit.. Same thing init?
)
- If not, cancel construction, refund construction costs and show text message "You can only build next to a road" to triggering unit owner
Unfortunately I am unable to find anything that checks for nearby constructions and buildings. I tried working with a buff but that'd mean the constructing structure needs to have the buff and I assume it'd get destroyed before getting the buff unless I put down a wait section. But I feel as if it won't work. Might be wrong!
The idea comes from a game called Heroes and Empires on Warcraft III. Jolly inspiring stuff, I say!
Thanks in advance!
Pip pip
- Shinela
What ho!
I'm having a bit of a tiff down here with my triggers, would highly appreciate your help!
Here's basically what I'd like the code to do:
- Unit begins construction
- Check if Constructing Structure is placed next to Unit-type of unit "Road" (It's a building.. Unit.. Same thing init?
- If not, cancel construction, refund construction costs and show text message "You can only build next to a road" to triggering unit owner
Unfortunately I am unable to find anything that checks for nearby constructions and buildings. I tried working with a buff but that'd mean the constructing structure needs to have the buff and I assume it'd get destroyed before getting the buff unless I put down a wait section. But I feel as if it won't work. Might be wrong!
The idea comes from a game called Heroes and Empires on Warcraft III. Jolly inspiring stuff, I say!
Thanks in advance!
Pip pip
- Shinela
Last edited: