Home   Help Search Login Register  

Author Topic: groups  (Read 1053 times)

0 Members and 1 Guest are viewing this topic.

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
groups
« on: 14 Nov 2002, 19:51:23 »
Well, I have a problem and itÂ's quite simple, so I hope u can help me:
I want a civilian group to join the player, the problem is that I want to do this with the "join" command. IÂ've tried to type: PlayerName join civiename but It didnÂ't work. On my command list it stands that I need the civie groups name, but how do I get the groups name?

THX in advance

silent1

  • Guest
Re:groups
« Reply #1 on: 14 Nov 2002, 20:02:56 »
 I think this is how you do it:
    GroupName = group this

Where GroupName is the name of the group of the civillian. Hope this helps!

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:groups
« Reply #2 on: 15 Nov 2002, 00:16:35 »
You can still use the name of your civilian to get your guy to join his group. That's not the problem ;)

The problem is you need to pass your joining guy's name in an array.
Wait! Don't panic! It's easy. All you need to do is put square brackets around his name... like this:

[ player ] join Civilian

Try that and see if it suits ;)

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:groups
« Reply #3 on: 15 Nov 2002, 09:02:30 »
I came up with another way to do it, without the join command. But thanks, maybe IÂ'll use it in another mission.

Topic solved and locked.