OFPEC Forum
Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: Engima on 19 Jan 2011, 19:21:00
-
Hi!
I'm trying to create my own "ambient traffic", so I spawn cars in the mission and give them different waypoints. Now this seem to work fine for cars most of the time, but when it comes to trucks (Ural for example), they don't follow the roads, but pick "shortcuts" over fields and even over steep hills whenever they have a chance. Is there a known way to get the trucks to stay on the road?
I've tried differents behaviours (SAFE and CARELESS), different speeds etc, but it doesn't work. Thankful for any help!
-
Are there any enemies around? Once a unit enters combat mode after spotting an enemy, their behaviour turns entirely erratic. E.g. civilians might freeze entirely and just crouch in fear, or they might start running in any odd direction and screaming. Soldiers go into slow-mo mode and start moving using bounding overwatch. And vehicles, from helicopters to trucks, go off road and generally start acting crazy. There is, sadly, little to nothing you can do about that :(
That said, vehicles in Safe mode SHOULD stick to the road in almost all situations. It's very odd if they don't do that, but instead as you say start finding shortcuts. I mean - they'll swerve and run into trees and streetsigns and be unable to turn a corner without destroying a few metres of someone's fence, but out in the countryside they're usually pretty good.
If you can't get it work, try posting your mission here and we can take a look at it :)
Wolfrug out.
-
Hi all!
AFAI remember... Vehicles running on stealth mode didn't tend to avoid crashing with trees, fences etc..?
-
Thanks for your replies!
No, there are no enemies around. I don't need to post my mission, just start the editor, put an MTVR in Vyshnoye, set a waypoint to Guglovo, and watch. The MTVR use the road a short distance, and then it picks a shortcut through the terrain.