Fluxistence Posted June 29, 2018 Share Posted June 29, 2018 I've added a Wander behavior to my creature, and it uses it, but instead of wandering around the given home position it keeps returning exactly to it every time. I.e. it's on a loop of "go to a random point at wander distance" --> "go back to home point". It would make a kind of star or asterisk shape if you drew the lines it traverses, where I'd expect something more like random lines between points on a circle whose center is the home location. I don't recall seeing creatures in the game doing this, so I'm guessing there's something wrong with what I'm doing, which is this: Wander(self.inst, function() return self.inst.components.knownlocations:GetLocation("anchor") end, MAX_WANDER_DIST) The "anchor" position is fixed while this behavior is active, and at the moment MAX_WANDER_DIST = 5, but I've tried adjusting it and no matter what value I chose, it would always move like that, just up to a different distance from the center. I saw the same kind of behavior when I used Leash instead - which, by the way, is different from Wander how, exactly? I'm not sure I get the difference. Any help would be appreciated. Thanks in advance. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now