parameters: (self, agent, animation)
docstring: set the agent's animation sequence to that named by animation
docstring_summary: set the agent's animation sequence to that named by animation
docstring_tokens: set the agent s animation sequence to that named by animation
function: def set_animation(self, agent, animation):
          """
          set the agent's animation sequence to that named by animation
          """
          if agent.state.animation != animation:
              agent.state.animation = animation
              delay = getSimContext().delay
              animation_speed = agent.state.animation_speed
              if delay > 0:
                  agent.state.animation_speed = animation_speed / delay
function_tokens: def set_animation ( self , agent , animation ) : if agent . state . animation != animation : agent . state . animation = animation delay = getSimContext ( ) . delay animation_speed = agent . state . animation_speed if delay > 0 : agent . state . animation_speed = animation_speed / delay