Skip to content

Latest commit

 

History

History
53 lines (38 loc) · 1.52 KB

File metadata and controls

53 lines (38 loc) · 1.52 KB

AgentDuplicate

AgentDuplicate(string, Agent, boolean, boolean, boolean, boolean, boolean)

  • 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));
agentcopy

Abel's clone has created!

Usage

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)

Back To Scripting Documentation