In my map players move from house to house. The issue is that when a player clicks inside of a house to move his unit there the unit won't move into the house through the door it'll instead kind of just pick a random spot and walk forward hoping for some magic power to let in walk through wall. So my desire is for the unit to treat the door like it isn't there, this way it always uses the nearest door into the house. The door must block pathing so that if it's locked players can't just walk through it. I can't think of any uncomplicated or realistic ways to do this. Any ideas would be helpful.
To accomplish this requires you to have the door be a combination of 3 units, with 2 morph abilities.
The first unit will allow ground pathing over it, but its model will appear "closed". It will need a autocast morph that has a validator checking if the door is locked or closed. It will autocast when a unit gets in range, morphing it to its locked or unlocked version version. This locked version will have the same model, but not allow pathing over it. The unlocked one will actually play whatever opening animation and morph to a version that permits ground pathing. Both unlocked and locked versions will need to autocast morph back to the original unit.
TLDR: Have a ground pathing unit that appears like a locked door, and when a unit approaches, use validators to autocast morph to the correct unit that you need. Game will path correctly until (figuratively) the door is slammed in the units face.
In my map players move from house to house. The issue is that when a player clicks inside of a house to move his unit there the unit won't move into the house through the door it'll instead kind of just pick a random spot and walk forward hoping for some magic power to let in walk through wall. So my desire is for the unit to treat the door like it isn't there, this way it always uses the nearest door into the house. The door must block pathing so that if it's locked players can't just walk through it. I can't think of any uncomplicated or realistic ways to do this. Any ideas would be helpful.
Bump.
Double bump.
To accomplish this requires you to have the door be a combination of 3 units, with 2 morph abilities.
The first unit will allow ground pathing over it, but its model will appear "closed". It will need a autocast morph that has a validator checking if the door is locked or closed. It will autocast when a unit gets in range, morphing it to its locked or unlocked version version. This locked version will have the same model, but not allow pathing over it. The unlocked one will actually play whatever opening animation and morph to a version that permits ground pathing. Both unlocked and locked versions will need to autocast morph back to the original unit.
TLDR: Have a ground pathing unit that appears like a locked door, and when a unit approaches, use validators to autocast morph to the correct unit that you need. Game will path correctly until (figuratively) the door is slammed in the units face.
@ArcaneDurandel: Go
Hmmm sounds over complex but I'll try making that.