Jump to content
Sign in to follow this  
Fearmonge

Roaming troops

Recommended Posts

I was wondering if there was a way to just add troops in the editor and with out giving them waypoints they just start roaming. They don't need to get anywhere just out wondering around. Thanks in advance.

Share this post


Link to post
Share on other sites
I was wondering if there was a way to just add troops in the editor and with out giving them waypoints they just start roaming. They don't need to get anywhere just out wondering around. Thanks in advance.
You can use the ACM- Ambient Combat Module for this, but it will add Trucks, APCs and Flying Thingies at the same time.

Share this post


Link to post
Share on other sites

ya I was looking at the ACM Module but first off it looks like it's only triggered around you. I wanted to be able to add troops and just let them wonder. This way if a flight was missed or your ride was blown up and you had to hoof it just a random chance of running into someone. I figured it would just be better to add the troops myself. This way as time passes troops are in different locations. But if I can't do it then I will look deeper into the ACM Module.

Share this post


Link to post
Share on other sites

You can add additional ACM to A.I. Units as well.

But in general and for performance reasons you would not want A.I. wander around the map were you wont even notice them.

This is why the ACM comes so handy.

Share this post


Link to post
Share on other sites

here's what i did, put in enemy ai in the center of chernarus, placement radius about 7500. in the init field of the group leader put in:

[group this,getPos this, 1000] call BIS_fnc_taskPatrol;

That will make the AI will patrol about 1000m radius from his initial position. Or you could use UPS scripts instead. search for urban patrol script by kronzky in armaholic

Share this post


Link to post
Share on other sites

Mr_Centipede I did like you said with the code. I like the random placement but the troops just stand there no roaming. Coding is so over my head, from the way I read your code I simply made a group and pasted the code in the init field of the leader and changed the placement radius to 7500. Is there a step or something in the code that I needed to change to match a name or something? I also just tried it with a unit and added the code not changing his position. I'm sorry I'm such a noob at coding.

Share this post


Link to post
Share on other sites

then let have a little bit of testing. Just put in 1 group.. dont put the placement radius yet.. and put in the init line.. try change 1000 to 500 and have it a go... it should move around in a little while.

Share this post


Link to post
Share on other sites

Ok tried it with 1 group nothing just standing there, tried it with just 1 person and nope nothing still standing there. Just incase you were wondering the 1 person wasn't me. LOL. Changed 500 then 50 and nothing. Tried to add a move waypoint maybe once he started to move he would be good to go. No go on that one either. Any more idea's I'll give it a shot. Thanks for the help also!

Share this post


Link to post
Share on other sites

Another good way is to use Kronzky's Urban Patrol Script. You can create a zone using a marker and the unit/group will begin patrolling. You can use it in the city and open land, forests, what have you.

Share this post


Link to post
Share on other sites

I just got from home and test the line... it no longer works... do you happened to use the beta patch? which build if I may ask? I think it may start from 60295.

[edit]

Or you could download CBA, Community Base Addon. That will reliably make the taskPatrol work. Dont know why

Or, you could use the Kronzky Urban Patrol Script

Edited by Mr_Centipede

Share this post


Link to post
Share on other sites

Kronzky Urban Patrol Script was perfect. Thank you everyone for the help.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×