I don't think you can find roads, one thing you can do is paint a texture under the roads that can't normally be seen, you can detect that with the Terrain Texture At Point trigger function and do your stuff.
I'm not sure of specifics but another way would probably be to have a dummy, invisible unit with some sort of speed boosting aura with a radius which matches the width of the road and then place these along the roads... the downside of that of course being lots of units.
A trigger alternative would be making a region out of multiple shapes which covers the roads and then have a trigger detect units in the region and apply/remove speed boosts accordingly.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hi,
I would want to make units go faster on roads I draw on terrain.
I noticed a trigger which verifies the type of terrain for a unit, but the roads are not included in the list.
How can I make a test on these roads ?
Thanks.
I don't think you can find roads, one thing you can do is paint a texture under the roads that can't normally be seen, you can detect that with the Terrain Texture At Point trigger function and do your stuff.
I'm not sure of specifics but another way would probably be to have a dummy, invisible unit with some sort of speed boosting aura with a radius which matches the width of the road and then place these along the roads... the downside of that of course being lots of units.
A trigger alternative would be making a region out of multiple shapes which covers the roads and then have a trigger detect units in the region and apply/remove speed boosts accordingly.