#Calling Agent.RequestDecision() from inside OnActionRecieved()

1 messages · Page 1 of 1 (latest)

umbral kayak
#

I'm trying to create a turn based AI, and one action it can take in its turn will provide new information, that might result in a later action being different. How do I update the decision in the middle of the OnActionRecieved() function (if possible)? Would calling Agent.RequestDecision() do that or no?

true shale
#

Actions are results of decision requests. And if I remember correctly, RequestDecision just registers a flag, that a decision should be requested in Next env step (i.e fixed update)

umbral kayak
#

Im pretty sure RequestDecision calls CollectObservations which then makes a decision and calls OnActionRecieved

#

I think the decision requester component just calls RequestDecision every step where the confusion might lie, but I think I had to remove that component

#

not too sure on the inner workings, but I managed to get it to work

raw citrus
#

yes you don't need the decision requester if you're calling it manually (and yes, request decision also calls request action so you only need to request a decision and it will handle the rest)