OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Cool Z on 22 Jul 2004, 07:45:05

Title: Death Msg
Post by: Cool Z on 22 Jul 2004, 07:45:05
I'm making group chat messages in my mission for when certain guys die. I have most of it sorted out, but I want the current group leader to be the guy who says the message rather than the preset leader (in case he dies). I'm using this line to do it, but I'm not sure it'll work, and I'm too tired to test (It's after 7 AM here, and I haven't went to sleep yet):

Code: [Select]
(leader Charlie) groupchat "Death message here."

I had a quick look through my comref, but couldn't find anything.

Thx in advance for the help.
Title: Re:Death Msg
Post by: Artak on 22 Jul 2004, 09:42:51
First you'll name the group by putting something like  wgrp1 = group this  in the group leader's init field. Now you can call the leader of that group with
(leader wgrp1) groupchat "I'm the leader. Respect ma authorita m'kay."
Title: Re:Death Msg
Post by: Cool Z on 22 Jul 2004, 15:34:45
So I got it right then? Charlie is what I called the group. So whoever is the group leader at the time of the message should say it. Thanks m8!

One more thing:
Your avatar really scares me. I have nightmares about it.  :'(
Title: Re:Death Msg
Post by: Artak on 22 Jul 2004, 17:00:48
Yes, you got it right  :)