OFPEC Forum

Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: tcp on 12 Oct 2009, 18:44:10

Title: What is an agent?
Post by: tcp on 12 Oct 2009, 18:44:10
http://community.bistudio.com/wiki/createAgent
Anyone know?
Title: Re: What is an agent?
Post by: DeanosBeano on 12 Oct 2009, 19:54:24

 My understanding was that it is used for animals (or units ?) so that they can then be given Tasks, apparently it is better to use create agent than createvehicle a dog or cow , untested but thats the loose theory i  was  applying.
 
Title: Re: What is an agent?
Post by: laggy on 12 Oct 2009, 20:03:18
Not 100% sure but I think an "agent" is a simpler kind of AI unit.

Meaning they can move and even react to certain stuff, but not much more.

The german sheperd (alsatian) is an agent for instance, and it barks and runs when you shoot at it.

It can also be spawned as a unit, by createUnit command (thanks DeanosBeano), but it still does not work perfectly as a group member. It often gets stuck when moving etc.

Seems like the "agent" models are not perfectly created as a normal AI unit.

Laggy
Title: Re: What is an agent?
Post by: Doolittle on 13 Oct 2009, 18:32:57
Exactly.. use createAgent for animals. They can't be grouped or given waypoints. If you do give them waypoints, you'll get arma.rpt errors.
Title: Re: What is an agent?
Post by: Rommel92 on 17 Oct 2009, 10:31:29
Might be something to look into for towns with civilians...  :)
My notes so far.

They can be accessed for gear.
They can target and kill you.
They can't be given orders/waypoints/domove/commands.
They don't have/need groups.

Possibly good for defenders?