View Single Post
  #1  
Old 11-24-2013, 10:04 PM
Sods Sods is offline
Approved Member
 
Join Date: Jan 2013
Posts: 2
Default Trigger message to the player that triggers an event

hi all, I hope someone out there can help. I have a script that works fine off line, but when I use this method in multiplayer every aircraft in server gets this message, when I only want 1 player (the player that triggers "WP1" and/or "WP2" and so on) to receive the message.

Script...

if ("WP1".Equals(shortName) && active)

{
GamePlay.gpHUDLogCenter("Well Done! You have found Oye Plage. Now Recon the air field at Colembert");
GamePlay.gpGetTrigger(shortName).Enable = false;
}

if ("WP2".Equals(shortName) && active)
{
GamePlay.gpHUDLogCenter("Well Done! You have found Colembert. Now land your aircraft at Samer");
GamePlay.gpGetTrigger(shortName).Enable = false;
}
...End

I think you can see what I am trying to do, any help would be great!

THX in advance.

Sods!
Reply With Quote