OFPEC Forum

Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: JamesF1 on 25 Jun 2009, 18:34:58

Title: Remove "Greeting" actions.
Post by: JamesF1 on 25 Jun 2009, 18:34:58
Does anyone know of a way to remove greeting/reporting actions from units?  I have a few civilians in a mission that I want to add custom talking options to, and I don't want the units to "auto-greet" me, nor do I want the player to be able to interact with the units using the 'default' method.  Couldn't find anything suitable on a quick scan through the new scripting commands, and I presume removeAction isn't going to work, as we don't know the action ID, etc.
Title: Re: Remove "Greeting" actions.
Post by: Gaia on 26 Jun 2009, 17:38:12
Code: [Select]
unit setVariable ["BIS_noCoreConversations", true]
Title: Re: Remove "Greeting" actions.
Post by: JamesF1 on 26 Jun 2009, 18:22:25
Excellent, thanks  :D
Title: Re: Remove "Greeting" actions.
Post by: bardosy on 29 Jun 2009, 07:35:21
Is it possible to turn off the ALL default conversations?

I know, I can do a huge loop for every NPC in the map and set this variable, but is there a cheaper way?
Title: Re: Remove "Greeting" actions.
Post by: ViperMaul on 29 Jun 2009, 18:20:19
Excellent, thanks Gaia!
Title: Re: Remove "Greeting" actions.
Post by: Supergrunt on 01 Jul 2009, 08:21:07
Is it possible to turn off the ALL default conversations?

I know, I can do a huge loop for every NPC in the map and set this variable, but is there a cheaper way?

i have seen in one of the single player missions tha they added an option like that to the player and probably (not tested yet) kills all greetings etc. towards the player with that code
Title: Re: Remove "Greeting" actions.
Post by: bardosy on 01 Jul 2009, 11:20:16
Oh, well. So if I use
Code: [Select]
player setVariable ["BIS_noCoreConversations", true]in the init script, the player can not use the convarsation with every NPC in the whole map?
Title: Re: Remove "Greeting" actions.
Post by: Doolittle on 31 Aug 2009, 04:49:26
Good ques. bardosy. My question is where exactly is BIS_noCoreConversations checked?! I can't find the .fsm or .sqf that actually does the talking stuff. Is it a module??

Edit: Nevermind, found in characters.pbo!