OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting Multiplayer => Topic started by: Griff on 10 Feb 2009, 12:50:59

Title: Removing 'Playable' units if not controlled by a human
Post by: Griff on 10 Feb 2009, 12:50:59
Right, so I have this mission I'm working on, my first serious one at that. the civilians, made BLUFOR by grouping them with a high ranking BLUFOR Rifleman, need to complete a few objectives and escape in a helicopter. Doesn't really matter though, this is about the very beginning of the mission

Now, I've placed a bunch of civilians in their "hometown", grouped them with the rifleman and set them to 'Playable'. That all works fine and dandy, but I can't figure out how to remove the excess civilians if they are not controlled by a human player. There's really no need for them, and they'd just get in the way of marvelous tacticlol gameplay (which is what I'm aiming for at least).

I haven't tested it in Multiplayer yet, if that matters.
Title: Re: Removing 'Playable' units if not controlled by a human
Post by: hoz on 10 Feb 2009, 15:15:34
disableAI = false;   is what your looking for. :)
Title: Re: Removing 'Playable' units if not controlled by a human
Post by: Griff on 10 Feb 2009, 15:48:30
Sure about that? It doesn't appear to be working, at least not in preview...
Title: Re: Removing 'Playable' units if not controlled by a human
Post by: Worldeater on 10 Feb 2009, 15:49:04
I'm sure he meant adding...

  disabledAI = true;

...to the description.ext (http://community.bistudio.com/wiki/Description.ext#Miscellaneous). ;)

Edit: This will most probably only take effect when tested in MP.
Title: Re: Removing 'Playable' units if not controlled by a human
Post by: hoz on 10 Feb 2009, 15:51:30
Ya in the description.ext its disabledAI , there's also a scripting command. thanks WorldEater.
Title: Re: Removing 'Playable' units if not controlled by a human
Post by: Griff on 10 Feb 2009, 16:30:58
I put it in the descript file, and it worked like a charm when I tried it in MP. Thanks. :)

Can I disable the ingame "Respawn" button somehow too? It doesn't actually do anything since there's nothing to respawn to, but it might be misleading for the players when it's there in the first place.
Title: Re: Removing 'Playable' units if not controlled by a human
Post by: hoz on 10 Feb 2009, 16:36:53
You cannot remove the ingame respawn button.