OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Sebastian Phillips on 08 Feb 2007, 07:51:30

Title: Spawning AI SP
Post by: Sebastian Phillips on 08 Feb 2007, 07:51:30
Me and the Enclave Team have decided to make a Stalingrad recreation like off of Call of Duty and we were wondering how do you keep spawning AI in Single Player Missions or if it is even possible

-1mmorta1

www.enclaveofp.tk

Feel free to Email me at "sebastianphillips@gmail.com"
Title: Re: Spawning AI SP
Post by: Mandoble on 08 Feb 2007, 08:09:08
using createUnit command:

"unit type" createUnit [position, group, "init field", skill level, "rank"]
Title: Re: Spawning AI SP
Post by: norrin on 16 Feb 2007, 00:27:47
@Sebastian Phillips

I've just written some scripts that do this for both non-playable AI units and vehicles in ArmA, which you can read about here (http://www.ofpec.com/forum/index.php?topic=28741.0).  Some of the cmds are different in ArmA so I'm not sure if this will help but it may act as a guide.