Jump to content
Sign in to follow this  
Wisp

Display BIS_fnc_showNotification for specific groups

Recommended Posts

I have a mission with two separate groups of players, each with different tasks. It took me awhile, but I finally got the tasks working properly. The only issue now is the notifications.

I'm using something like "tsk2transport setTaskState "Succeeded"; ["TaskSucceeded",["","Take off"]] call BIS_fnc_showNotification" when a task is completed. This works okay, but it displays the notification to everyone. I want it to only show for the group designated with the task.

Thanks for any help.

Share this post


Link to post
Share on other sites

for example

[["RespawnVehicle",[_displayName,_respawnName,_picture]],"BIS_fnc_showNotification",_side] call bis_fnc_mp;

replace _side by the group you want to show it...

so this should work if player are in the same group.

[["TaskSucceeded",["","Take off"]],"BIS_fnc_showNotification",_groupofplayer] call bis_fnc_mp;

if they are not playing in the same group you just have to put them in an array and send the array instad of the group of player.

https://community.bistudio.com/wiki/BIS_fnc_MP

Edited by Mariodu62

Share this post


Link to post
Share on other sites

You are my hero, good sir.

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
Sign in to follow this  

×