Setting Follower Entity Local Avoidance to Locked via Script

  • A* version: 5.4.6
  • Unity version: 6.000.3.10f1

I want to set the Locked setting on the Follower Entity via script. I tried following the guidance the ‘FollowerEntity - setting RVO to locked?’ post but it isn’t working (sorry, new user so can’t add links).

rvoAgent is no longer a variable on the Follower Entity, so I tried rvoSettings instead, but no luck.

Here is what I have:

var x = followerEntity.rvoSettings;
x.locked = true;

It throws no errors, but does nothing when I trigger it (I am logging to confirm the function that calls it is triggering when intended).

Thanks for your help.

Hi

RVOSettings is a struct, so you will have to assign it back to set all values.

followerEntity.rvoSettings = x;
1 Like

Hiya,

Perfect, cheers! Thanks very much for the really quick response.