gc8 981 Posted June 27, 2019 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 291 Posted June 27, 2019 @gc8, https://github.com/A3Wasteland/ArmA3_Wasteland.Altis/blob/0554cc7aabc300d2a92a85df361ad5e1dba140db/server/functions/defendArea.sqf#L78 Share this post Link to post Share on other sites
Grumpy Old Man 3550 Posted June 27, 2019 Try using allowFleeing and forgetTarget together. Cheers Share this post Link to post Share on other sites
gc8 981 Posted June 28, 2019 @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
gc8 981 Posted June 28, 2019 12 hours ago, Grumpy Old Man said: Try using allowFleeing and forgetTarget together. Will try that, thx Share this post Link to post Share on other sites
gc8 981 Posted June 28, 2019 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
Schatten 291 Posted June 28, 2019 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. 1 Share this post Link to post Share on other sites
gc8 981 Posted June 28, 2019 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