Home   Help Search Login Register  

Author Topic: Removing 'Playable' units if not controlled by a human  (Read 1749 times)

0 Members and 1 Guest are viewing this topic.

Offline Griff

  • Members
  • *
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.

Offline hoz

  • OFPEC Site
  • Administrator
  • *****
Re: Removing 'Playable' units if not controlled by a human
« Reply #1 on: 10 Feb 2009, 15:15:34 »
disableAI = false;   is what your looking for. :)
Xbox Rocks

Offline Griff

  • Members
  • *
Re: Removing 'Playable' units if not controlled by a human
« Reply #2 on: 10 Feb 2009, 15:48:30 »
Sure about that? It doesn't appear to be working, at least not in preview...

Offline Worldeater

  • Former Staff
  • ****
  • Suum cuique
Re: Removing 'Playable' units if not controlled by a human
« Reply #3 on: 10 Feb 2009, 15:49:04 »
I'm sure he meant adding...

  disabledAI = true;

...to the description.ext. ;)

Edit: This will most probably only take effect when tested in MP.
try { return true; } finally { return false; }

Offline hoz

  • OFPEC Site
  • Administrator
  • *****
Re: Removing 'Playable' units if not controlled by a human
« Reply #4 on: 10 Feb 2009, 15:51:30 »
Ya in the description.ext its disabledAI , there's also a scripting command. thanks WorldEater.
Xbox Rocks

Offline Griff

  • Members
  • *
Re: Removing 'Playable' units if not controlled by a human
« Reply #5 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.

Offline hoz

  • OFPEC Site
  • Administrator
  • *****
Re: Removing 'Playable' units if not controlled by a human
« Reply #6 on: 10 Feb 2009, 16:36:53 »
You cannot remove the ingame respawn button.
Xbox Rocks