Editors Depot - Mission Editing and Scripting > Arma2 - Editing/Scripting Multiplayer

Spawn Playable AI Squad

(1/2) > >>

Lonestarranger:
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? 

h-:
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?

Lonestarranger:
Meant ARMA2, but posted in wrong place.  Did not know how to delete the wrong one. 

h-:
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.

Worldeater:
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.

Navigation

[0] Message Index

[#] Next page

Go to full version