Home   Help Search Login Register  

Author Topic: how to make leader sidechat  (Read 499 times)

0 Members and 1 Guest are viewing this topic.

Dagon

  • Guest
how to make leader sidechat
« on: 25 Sep 2004, 08:31:49 »
is there anyway to always have the leader of my group talk in sidechat? Currently, I have the leader with a name, but this means that if the leader dies, sidechat doesn't work, since he's nolonger the leader of the group.

Basically, I need a trigger string which will get the current leader to say the text, not only the first leader.

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:how to make leader sidechat
« Reply #1 on: 25 Sep 2004, 09:33:44 »
You name your gropu right? With

grp1 = group this

and then you have like this:

(leader grp1) sidechat "Blahblahblah. Oh no, you got birdpoop on your head private!!"

:beat: *Gets Shot* :beat:

Dagon

  • Guest
Re:how to make leader sidechat
« Reply #2 on: 25 Sep 2004, 11:49:42 »
also, how can I name the groups? they're usually "alpha", "bravo" etc.

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:how to make leader sidechat
« Reply #3 on: 25 Sep 2004, 12:49:12 »
Use setGroupID
for example put the following in the init field of a group leader:

this setGroupID ["Alpha","GroupColor0"]

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:how to make leader sidechat
« Reply #4 on: 25 Sep 2004, 13:30:22 »
It's important to distinguish between naming groups and setting their ID.    Two are completely different.   The game engine uses ID to refer to groups, but you, the mission designer, must use the group name.

Armstrong, in his most excellent post, told you how to name the group.    The only detail he missed out was that the naming code goes in the init field of the group leader.

THobson told you how to set the group ID, which is the alpha black thing that appears in the sidechat.
Plenty of reviewed ArmA missions for you to play