Home   Help Search Login Register  

Author Topic: How to turn off default conversation with NPCs [SOLVED]  (Read 1958 times)

0 Members and 1 Guest are viewing this topic.

Offline mathias_eichinger

  • Missions Depot
  • Administrator
  • *****
  • I'm a llama!
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
« Last Edit: 28 Feb 2010, 20:34:59 by mathias_eichinger »

Offline bardosy

  • Honoured Contributor
  • ***
  • campaign designer
    • CartooDiv
Re: How to turn off default conversation with NPCs
« Reply #1 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.
Fix bayonet!

Offline Arkon

  • Members
  • *
Re: How to turn off default conversation with NPCs
« Reply #2 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?

Offline bardosy

  • Honoured Contributor
  • ***
  • campaign designer
    • CartooDiv
Re: How to turn off default conversation with NPCs
« Reply #3 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]
Fix bayonet!

Offline Arkon

  • Members
  • *
Re: How to turn off default conversation with NPCs
« Reply #4 on: 28 Feb 2010, 02:05:07 »

Hi bardosy,

Ok, Thanks for that i'll give it a try.

Offline mathias_eichinger

  • Missions Depot
  • Administrator
  • *****
  • I'm a llama!
Re: How to turn off default conversation with NPCs [SOLVED]
« Reply #5 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