Jump to content

Checking if an entity ahead exists.


Mr.Meeseeks
 Share

Recommended Posts

Heya,

At the moment, I got a model in which trucks are following each other, and able to catch-up...till they reach a certain distance between each other. When they reach the desired distance I managed to set the same speed by using the following assign step: ModelEntity.Movement.Rate, new value: ModelEntity.NextEntityAheadOnLink.Movement.Rate.

But whenever the entity ahead leaves the links, I obvioulsy get an error. So I would like to know how I let this entity check if there's any Entity ahead?

Thanks in advance :).

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...