OFPEC Forum
Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started 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.
-
unit setVariable ["BIS_noCoreConversations", true]
-
Excellent, thanks :D
-
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?
-
Excellent, thanks Gaia!
-
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
-
Oh, well. So if I use
player setVariable ["BIS_noCoreConversations", true]
in the init script, the player can not use the convarsation with every NPC in the whole map?
-
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!