Home   Help Search Login Register  

Author Topic: Spawn Playable AI Squad  (Read 3016 times)

0 Members and 1 Guest are viewing this topic.

Offline Lonestarranger

  • Members
  • *
Spawn Playable AI Squad
« on: 11 Jul 2012, 20:44:32 »
Am new to editing. Is there a way to spawn an entire AI group like a squad or a tank platoon that has playable positions?   I know there are scripts to spawn an AI non playable group, but any way to do it with all or some positions in the group playable? 

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: Spawn Playable AI Squad
« Reply #1 on: 12 Jul 2012, 08:45:59 »
Welcome to OFPEC :welcome:

However, unfortunately on your first day you have violated our rules and posted this same thread at two different boards, which is not allowed. :cop:

So that I can lock the 'correct' duplicate thread, for which game you want this information on, Arma 1 or 2?
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline Lonestarranger

  • Members
  • *
Re: Spawn Playable AI Squad
« Reply #2 on: 12 Jul 2012, 22:33:52 »
Meant ARMA2, but posted in wrong place.  Did not know how to delete the wrong one. 

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: Spawn Playable AI Squad
« Reply #3 on: 14 Jul 2012, 19:58:01 »
Ok. Best course of action in a case like that is to use the 'report to moderator' link that is located in the bottom of the post and ask the thread to be moved. But no harm done :)


As for the question at hand, I think setPlayable is most likely the scripting command you need.
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline Worldeater

  • Former Staff
  • ****
  • Suum cuique
Re: Spawn Playable AI Squad
« Reply #4 on: 16 Jul 2012, 23:02:03 »
You could use the BIS_fnc_spawnGroup function (which is provided by BI's Function Library) and use "setPlayable" on certain/all units after it has spawned the group.
try { return true; } finally { return false; }

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: Spawn Playable AI Squad
« Reply #5 on: 17 Jul 2012, 17:38:39 »
Or alternatively you can find the same stuff here at OFPEC instead of the Biki ;)
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.