Jump to content

Recommended Posts

Playing around with the undead mod, I decided to quarantine a city. Placed soldiers around the city in strategic pos, inorder to contain the infection. However... as soon as they see an enemy, they leave their posistion and run into the city to hunt them down. Can I stop this behaivor?

I tried using doStop this and force speed...

Also disable Ai "move", which however disable them from turning...

Is there a guard script out there which works? Any commands? Any help is useful!

Share this post


Link to post
Share on other sites

I tried this... giving them a "HOLD" waypoint at their current location. They run in the direction of the contact but don't seem to go very far. Your mileage might vary. I didn't do a whole lot of testing.

I also tried "SENTRY"..... but "HOLD" seems to work a little better.

Put this in the init of one unit in each group.

nul = group this addWayPoint [position leader group this,10]; [group this,1] setWayPointType "HOLD";

Share this post


Link to post
Share on other sites

Are they supposed to do anything? Like shoot the zombies or are they just there as a set piece type deal?

Having them start facing in and disabling move should stop them.

Actually your best bet is probably to not have them grouped if that is feasible. If they aren't grouped they won't go running in because there will be no one to order them to do it.

Share this post


Link to post
Share on other sites

Maybe make them friendly to the Zombies until you need them to shoot.

Share this post


Link to post
Share on other sites

"Stay there or i'll shoot!!!!"

"You're at the edge of unbefriending me!"

Edit----

To avoid misunderstadings:

"at the edge" - if a certain distance is reached.

"unbefriending me" - side1 setFriend [side2 , value]

but... apparently it is reported as buggy if set in the middle of mission and also is side wide.

could worth a try though

another approach could be addRating (Jakerod just suggested that on another thread btw)

"When the rating gets below -2000, the unit's side switches to "ENEMY" and the unit is attacked by everyone."

I suspect this applies only if they're on the same side...

Edited by gammadust

Share this post


Link to post
Share on other sites
"Stay there or i'll shoot!!!!"

"You're at the edge of unbefriending me!"

Edit----

To avoid misunderstadings:

"at the edge" - if a certain distance is reached.

"unbefriending me" - side1 setFriend [side2 , value]

but... apparently it is reported as buggy if set in the middle of mission and also is side wide.

could worth a try though

another approach could be addRating (Jakerod just suggested that on another thread btw)

"When the rating gets below -2000, the unit's side switches to "ENEMY" and the unit is attacked by everyone."

I suspect this applies only if they're on the same side...

addRating makes it so that any one will attack them though including guys who are supposed to be with them.

I think the best idea is to have them be ungrouped unless you need them to be for some other reason. That way you can put them in certain locations and they shouldn't move.

Share this post


Link to post
Share on other sites

Wow! Thanks alot for all the answers! First of, not having them in groups would work, however, this will not work for my mission. I will try mr Gustavs idea when I get home! I will report back

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  

×