- Joined
- Feb 2, 2006
- Messages
- 1,631
Hi,
I want to create a train system but keep it as simple as possible so without moving the train units periodically.
I have the idea that the train units have the movement type float just as ships and the pathing of the railways is that of shallow water.
It would be possible to keep the train on the railway and let ground units still pass the railway with this solution. However, I have no idea how I could create the pathing of shallow water without actually placing shallow water. I can't find anything about Pathing - Everything about it
There is a JASS function:
so it should be possible?
I use destructables or doodads for the railway pieces but I would like to set the pathing manually with pathing blockers which have the pathing type floatability.
In the World Editor it shows color in the attached screenshot for shallow water's pathing.
Is this approach even possible and does it make sense? I did not think much about some disadvantages. Otherwise, I would have to move the train automatically from different checkpoints to the next ones. With my approach the check points would be less and it would be easier to order it to the next location. The wagons would simply follow the next wagon/first wagon.
It would even allow you to control the train yourself since it can never leave the railway
I want to create a train system but keep it as simple as possible so without moving the train units periodically.
I have the idea that the train units have the movement type float just as ships and the pathing of the railways is that of shallow water.
It would be possible to keep the train on the railway and let ground units still pass the railway with this solution. However, I have no idea how I could create the pathing of shallow water without actually placing shallow water. I can't find anything about Pathing - Everything about it
There is a JASS function:
JASS:
call SetTerrainPathableBJ( GetRectCenter(GetPlayableMapRect()), PATHING_TYPE_FLOATABILITY, true )
I use destructables or doodads for the railway pieces but I would like to set the pathing manually with pathing blockers which have the pathing type floatability.
In the World Editor it shows color in the attached screenshot for shallow water's pathing.
Is this approach even possible and does it make sense? I did not think much about some disadvantages. Otherwise, I would have to move the train automatically from different checkpoints to the next ones. With my approach the check points would be less and it would be easier to order it to the next location. The wagons would simply follow the next wagon/first wagon.
It would even allow you to control the train yourself since it can never leave the railway