Home   Help Search Login Register  

Author Topic: Making POWs join player group  (Read 686 times)

0 Members and 1 Guest are viewing this topic.

Hellfish6.2

  • Guest
Making POWs join player group
« on: 23 Feb 2003, 03:02:51 »
Hi guys

Here's my problem:

I've got four individual soldiers set up as captives. I want the player to be able to free them by simply coming to their aid (I probably should set it up so that they're free once all their guards are killed, but I'm working on the basics first) and once they have been freed, I need them to join the player's group.

Now, the problem is that the trigger has the following command:
Quote
{_x setCaptive false;[_x] join group} forEach [pow1, pow1_1, pow1_2 and pow1_3]

But when the player activates the trigger, I get the following message:
Quote
{_x setCaptive false;[_x] join group} forEach [pow1, pow1_1, pow1_2 and pow1_3]|#|;': Error and: Type Object, expected Bool

What's that mean? Is the fact that I've got the POWs using an FX (so that their hands are behind their heads) a problem?

Help a brutha out...

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:Making POWs join player group
« Reply #1 on: 23 Feb 2003, 10:50:43 »
the error is due to[pw1, pow1_1, pow1_2 and pow1_3]

take away the and word and replace it with a ,
though I'm not sure it will still work, but that's what the error message is telling you about.
Not all is lost.

Hellfish6.2

  • Guest
Re:Making POWs join player group
« Reply #2 on: 23 Feb 2003, 19:04:32 »
Wow. That's so obvious that I feel stupid now. Thanks for the help!!  :)