OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: B-2-0 on 04 Sep 2003, 05:35:55

Title: MP Sidechat
Post by: B-2-0 on 04 Sep 2003, 05:35:55
I have 4 groups of playable units.....all groups have names as do all units......i have a trigger that activates sidechat text but i want this trigger to detect which of the groups has activated the trigger and the sidechat to be said by whichever player is the leader of that group at the time.

How would i do this?

Thanx in advance!

B
Title: Re:MP Sidechat
Post by: Lut on 05 Sep 2003, 06:07:46
attach a script to the trigger

; _caller refers to the person who triggers
_caller = THISLIST 0

;leader of the person who triggers will sidechat
LEADER _caller SIDECHAT "blah"

but i think SIDECHAT is not a public command so in MP, the message will not be displayed for every player. i remember seeing a thread with the solution to this prob though so if you need to you can search this forum for it