Jump to content
Sign in to follow this  
Alpine_gremlin

Question about AddAction and RemoteExec

Recommended Posts

Hey guys, I have a mission where the players have to collect some intelligence before advancing to the next part of the mission. In the init of the intel piece I have an addaction:

[intel, ["Collect Transport Manifest", {intel setPos [0,0,0]; intelFound = true; publicVariable "intelFound"; _this select 1 groupChat "Looks like this is it...this manifest shows where that truck last went. Let`s move!";}]] remoteExec ["addAction", 0];

Everything works except for the chat message I want to show. It only appears for the person calling the action. Would I have to do a second remoteExec for the group chat within the first one? Or is using the caller ID the wrong way to broadcast the message to all clients?\

 

Cheers!

Share this post


Link to post
Share on other sites

Yes, you would to ensure it runs for all players. You could do  [_this select 1, "looks like ..."] remoteExec ["sideChat", 0];  .. You could also listen for the "intelFound" publicVariable broadcast and do it there instead.

  • Like 2

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  

×