- string:
- Agent:
- boolean: (optional)
- boolean: (optional)
- boolean: (optional)
- boolean: (optional)
- boolean: (optional)
- Returns: Agent
AgentDuplicate is a creating a clone of agent from the orignial agent. Example: Let's clone a Abel!
AgentCreate("AbelDummy", "sk61_abel.prop", Vector(0,0,30), Vector(0,0,0), kScene, false, false);
AgentDuplicate("AbelTwin", "AbelDummy");
AgentSetPos("AbelTwin", Vector(3,0,30));
Abel's clone has created!
local resultAgent = AgentDuplicate(variableString, variableAgent)local resultAgent = AgentDuplicate(variableString, variableAgent, variableBoolean)local resultAgent = AgentDuplicate(variableString, variableAgent, variableBoolean, variableBoolean)local resultAgent = AgentDuplicate(variableString, variableAgent, variableBoolean, variableBoolean, variableBoolean)local resultAgent = AgentDuplicate(variableString, variableAgent, variableBoolean, variableBoolean, variableBoolean, variableBoolean)local resultAgent = AgentDuplicate(variableString, variableAgent, variableBoolean, variableBoolean, variableBoolean, variableBoolean, variableBoolean)