Function agent(opt?: AgentCompOpt): AgentComp An agent which can finds it way on a tilemap. param opt - Options for the agent component. See AgentCompOpt.returns The agent comp.since v3000.0group Components