Home   Help Search Login Register  

Author Topic: Open a dialog from a radio trigger.  (Read 1440 times)

0 Members and 1 Guest are viewing this topic.

Offline Pepsi117

  • Members
  • *
Open a dialog from a radio trigger.
« on: 24 May 2011, 12:06:11 »
I have a dialog (Diag2.hpp) that is activated from a radio alpha trigger but it opens on all clients screens instead of on the one who used the trigger.

I only got the game a couple of weeks ago and decided to learn scripting by throwing myself in at the deep end, so i set to work making a in-game scripting interface that is mp compatable, so far everything works except these dialogues keep opening for all clients.

Could anybody shed some light on my problem?
« Last Edit: 24 May 2011, 20:37:59 by Pepsi117 »

Re: Open a dialog from a radio trigger.
« Reply #1 on: 24 May 2011, 19:59:46 »
I believe you need something like this.
Code: [Select]
if (player in list YOURTRIGERNAME) then {
at the top of your hpp and then close the whole thing at the bottom with };
Look at my post ( Smal problem with a triger ) bacause I had the same problem lol it was removing weapons for all human players on the server. Acttually you might need that at the begening of your on act on the triger. I would need to see your on act line and your Diag2.hpp code.


Pepsi117 I saw you back in here a few times, you could of at least let me know if it worked lol
« Last Edit: 24 May 2011, 23:08:45 by SpectrumWarrior »

Offline Pepsi117

  • Members
  • *
Re: Open a dialog from a radio trigger.
« Reply #2 on: 25 May 2011, 10:44:43 »
I have had work so haven't had time to test it yet but im going to try now...

I attached the mission file.
« Last Edit: 25 May 2011, 10:50:14 by Pepsi117 »

Re: Open a dialog from a radio trigger.
« Reply #3 on: 25 May 2011, 21:00:19 »
Sorry Pepsi117, I tried it on the menu.sqf, on the triger, and on the diag2.hpp. Couldn't get it to work at all. Maybe someone else will join this thread and help you.