Page 1 of 1

What does Brain's "lastSeen" value mean? Its a decimal

Posted: Tue Feb 10, 2015 2:51 am
by MrChoke
As I now focus fully on AI stuff, I see the brain component has a read-only value you can get called "lastSeen". I get its value and its a decimal number, not what I was hoping and that was an (X,Y) coordinate. I get values like this from it:
1567.34334455672

Does anybody know what this means? I wish it was (X, Y) of where he last saw the party.

Re: What does Brain's "lastSeen" value mean? Its a decimal

Posted: Tue Feb 10, 2015 3:10 am
by minmay
It's the time at which the party was last seen.

Re: What does Brain's "lastSeen" value mean? Its a decimal

Posted: Tue Feb 10, 2015 3:20 am
by MrChoke
minmay wrote:It's the time at which the party was last seen.
Yup, that's it. Its the seconds in game time since the game started though, so the number is not reset to zero. It is always increasing if the party is seen. Thanks!

Re: What does Brain's "lastSeen" value mean? Its a decimal

Posted: Tue Feb 10, 2015 4:54 am
by minmay
Why would you want it reset to 0? This way you can compare it to Time.currentTime().

Re: What does Brain's "lastSeen" value mean? Its a decimal

Posted: Tue Feb 10, 2015 5:00 am
by MrChoke
minmay wrote:Why would you want it reset to 0? This way you can compare it to Time.currentTime().
I don't. What it gives is fine.

I know its a little off topic but I am noticing "seenParty" doesn't work quite right sometimes. It gets set to true at times when there is a wall between me and the mob. It goes back to false again shortly after though. I am still trying to figure out why its doing that.