Page MenuHomeFeedback Tracker

All commands no longer work with agents
Closed, ResolvedPublic

Description

Using commands moveTo, move, doMove, doStop or setDestination with agents results in "Generic error in expression" error.
Commands were changed to not support "Team member" type and now only "Object" types are supported (effectively disabling any usable agents behaviour)

Example script:

_unit = createAgent ["O_Soldier_VR_F", [0,0,0], [], 0, "NONE"];
_unit moveTo [0,0,0];

Details

Severity
Block
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Operating System Version
Pro
Category
AI Control / Commanding
Steps To Reproduce
  • Spawn agent
  • Use any of AI movement commands (moveTo, setDestination, doMove, move) with the agent
Additional Information

Error throw:

Error Generic error in expression

RPT:

22:19:01 Error in expression <(agents #0) moveTo [0,0,0]>
22:19:01   Error position: <moveTo [0,0,0]>
22:19:01   Error moveto: Type Team member, expected Object
22:19:01 Error in expression <(agents #0) moveTo [0,0,0]>
22:19:01   Error position: <moveTo [0,0,0]>
22:19:01   Error Generic error in expression
22:19:12 Error in expression <(agents #0) setDestination [ 
  [4000,4000,0], 
  'L>
22:19:12   Error position: <setDestination [ 
  [4000,4000,0], 
  'L>
22:19:12   Error setdestination: Type Team member, expected Object
22:19:12 Error in expression <(agents #0) setDestination [ 
  [4000,4000,0], 
  'L>
22:19:12   Error position: <setDestination [ 
  [4000,4000,0], 
  'L>
22:19:12   Error Generic error in expression
22:24:48 Error in expression <(agents #0) doMove [0,0,0]>
22:24:48   Error position: <doMove [0,0,0]>
22:24:48   Error domove: Type Team member, expected Array,Object

Event Timeline

ffredyk created this task.Wed, Apr 7, 10:51 PM

Update: all relevant commands no longer accepts Team member type. (i.e. setDir, setPos, setDamage, switchMove)

ffredyk renamed this task from Movement commands not working with agents to All commands no longer work with agents .Wed, Apr 7, 11:06 PM
ffredyk changed Severity from Major to Block.
dedmen added a subscriber: dedmen.Thu, Apr 8, 11:16 AM

They never accepted Team member, as you were already told in Arma discord, "agents" command doesn't return agents.

dedmen closed this task as Resolved.Thu, Apr 8, 11:16 AM
dedmen claimed this task.