I’m currently creating a mission where enemy tanks (BT-7’s) chase you and try to hunt you down but I just can’t figure out how to stop them from driving trough buildings. I’ve tried messing with the properties of the tanks or actions but they either dont work or don’t do anything. Is this even possible? I can’t find anything in the wiki or online about it
You have to put them on route tracks that avoid the buildings. Then give them conditionals to deviate from it past them. IIRC.
- Add BT-7s to new squad
- Make new Trigger and loop it by checking enableAfterComplete
Evests
- periodicEvent set it to 1
Arions
-
unitSetPropertiesa
object BT-7s squad
in Movement params
OFF ignoreCollisions
ON/OFF ignoresObstaclesAfterTime
ON allowOvertakeMode
in Collision params
ON registerCollisions -
unitAttackTarget
with selected BT-7 squad as object and player as target
select fireRandom check box as well as player Attracted
set randomObjectsCount to a number of BT-7s
set playerAttractedCount to a number of BT-7s
set playerAttractedEffRate to interesting you number (I recommend 0.6) -
unitMoveTo
set object as BT-7s squad
and target as player|
check the follow_target checkbox
and set speed to something like 30-60
You can also try seting the move_type to *navmesh"
That should get the job done.
With navmesh they at least dont clip into walls anymore and finally drive on the roads but they will only go to my spawn if they dont see me, even tough I have set myself as the target on “unitMoveTo” and have “playerAttracted” enabled. Do you know how to fix that?
what you mean by “they will only go to my spawn if they don’t see me”?