Jump to content
gc8

Stop group fleeing

Recommended Posts

Hi

I'm looking for a way to make group stop fleeing. I tried achieving this by deleting all the units in the group but this did not work as the newly created units still flee. I also tried "_group allowFleeing 0;" but this does not seem to have effect once the group has started fleeing.

 

I would like to achieve  this without having to create new group, so if any one knows a way please let me know.

thx 🙂

 

Share this post


Link to post
Share on other sites

@Schatten I'm looking at the code but don't know how it's related to fleeing?

Share this post


Link to post
Share on other sites
12 hours ago, Grumpy Old Man said:

Try using allowFleeing and forgetTarget together.

 

Cheers

I can't actually use  forgettarget because in my test mission I'm deleting all the enemies once the other group starts fleeing... 

Share this post


Link to post
Share on other sites
45 minutes ago, gc8 said:

@Schatten I'm looking at the code but don't know how it's related to fleeing?

The code I provided checks the distance between a starting position of a unit and its current position and if this distance is bigger than 75 metres then a unit is ordered to move to a starting position.

  • Thanks 1

Share this post


Link to post
Share on other sites
17 minutes ago, Schatten said:

The code I provided checks the distance between a starting position of a unit and its current position and if this distance is bigger than 75 metres then a unit is ordered to move to a starting position.

 

Ah so it's the moveTo that stops unit from fleeing. 

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

×