Jump to content
Nick Gotvyak

Can't catch BIS_fnc_kbTellLocal_played by addScriptedEventHandler

Recommended Posts

So, lately I've been trying to make NPCs "forward" their radio communications to player object, so later I can extend it to High Command module. I've tried many methods, of which the only semi-functional was by catching some events like commandChanged, enemyDetected etc. 
After some time I stumbled upon kbTtellLocal, which fires a scripted event on this line:

[missionnamespace,"BIS_fnc_kbTellLocal_played",[_from,_to,_sentence,_channel],true] call bis_fnc_callScriptedEventHandler;

 

Here is the code that tried subscribing to it in init.sqf. Unfortunatelly, it doesn't work even in cases when player is in the channel, to which initial sentence was intended

[missionNamespace, "BIS_fnc_kbTellLocal_played", { 
    params ["_from", "_to", "_sentence", "_channel"];
    systemChat "Code ran!";
}] call BIS_fnc_addScriptedEventHandler;

Am I misunderstanding something about kbTell, handlers or Converstations in general?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×