OFPEC Forum
Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started 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
-
I use this in my missions at init.sqs:
player setVariable ["BIS_noCoreConversations", true]
{_x setVariable ["BIS_noCoreConversations", true]} forEach units group player
For me, it works.
-
Hi bardosy,
Is that for just the players group?
How do you do it for all units
I have tried this also:
{
_x setVariable ["BIS_noCoreConversations",true];
} forEach allUnits;
Anyone?
-
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:
player setVariable ["BIS_noCoreConversations", true]
-
Hi bardosy,
Ok, Thanks for that i'll give it a try.
-
Thanks, bardosy's answer really works, I did not know that I had to put it into the init.sqs.
Cheers
Mathias