OFPEC Forum

Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: mathias_eichinger on 27 Feb 2010, 17:11:45

Title: How to turn off default conversation with NPCs [SOLVED]
Post by: mathias_eichinger on 27 Feb 2010, 17:11:45
Hi all!

I need to turn off the default "Hello" from units close by in an intro, and I think haroon's Zombie script also has this BIS feature.

I followed bardosys tip of the month by writing

unit setVariable ["BIS_noCoreConversations", true];

in the init line of each soldier. But that has no effect, neither does it work when I put the respective lines in the intro script. Any ideas what I am doing wrong?

Thanks in advance,

Mathias
Title: Re: How to turn off default conversation with NPCs
Post by: bardosy on 27 Feb 2010, 18:30:04
I use this in my missions at init.sqs:

Code: [Select]
player setVariable ["BIS_noCoreConversations", true]
{_x setVariable ["BIS_noCoreConversations", true]} forEach units group player

For me, it works.
Title: Re: How to turn off default conversation with NPCs
Post by: Arkon on 27 Feb 2010, 18:46:51

Hi bardosy,

Is that for just the players group?

How do you do it for all units

I have tried this also:
Code: [Select]

{
_x setVariable ["BIS_noCoreConversations",true];
} forEach allUnits;

Anyone?
Title: Re: How to turn off default conversation with NPCs
Post by: bardosy on 27 Feb 2010, 22:28:19
As I know, it's enough my first line (to the player), because it's reverse. It disable the player to talk to anyone; and not disable everybody to talk to the player. Well, in Single Player it's enough this:

Code: [Select]
player setVariable ["BIS_noCoreConversations", true]
Title: Re: How to turn off default conversation with NPCs
Post by: Arkon on 28 Feb 2010, 02:05:07

Hi bardosy,

Ok, Thanks for that i'll give it a try.
Title: Re: How to turn off default conversation with NPCs [SOLVED]
Post by: mathias_eichinger on 28 Feb 2010, 20:34:40
Thanks, bardosy's answer really works, I did not know that I had to put it into the init.sqs.

Cheers

Mathias