Home   Help Search Login Register  

Author Topic: Radio replies inside trigger areas.  (Read 1075 times)

0 Members and 1 Guest are viewing this topic.

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Radio replies inside trigger areas.
« on: 31 Dec 2005, 00:42:46 »
I have an idea. I want to have the possibility of calling support in my mission. However I want so that if you are outside the area of designated tirggers, you won't get a reply on the radio.
I have an image.



Each trigger area will house an AI infantry support element. When you are inside the trigger and you call for support on your radio you will get a reply from that group and then they will come to your position and join your group. If you are outside the trigger you will just get static.
I can do all the moving to player's position and joining group stuff but the other bit I need help with.


Any ideas on how to implement the idea? I have mental block.
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."

marcus3

  • Guest
Re:Radio replies inside trigger areas.
« Reply #1 on: 31 Dec 2005, 05:33:37 »
maybe in the trigger, put in on de activetion,
Radio = 1
or something, then in the script,
?(radio == 1) : goto "static"
i think i know what u are trying to do, not sure :p
hope this help: :)
« Last Edit: 31 Dec 2005, 05:34:32 by Big Boss Marcus »

Offline Pilot

  • Contributing Member
  • **
Re:Radio replies inside trigger areas.
« Reply #2 on: 31 Dec 2005, 05:50:55 »
Make the triggers activate repeatedly when the player is present.  In the On Activation field, put:
AllowRadio = true;

On Deactivation:
AllowRadio = false;

Then, in the radio scripts, have this line before the rest:
?!AllowRadio: exit

I would also suggest you initialize AllowRadio by putting the following command in init.sqs:
AllowRadio=false

-Pilot

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Re:Radio replies inside trigger areas.
« Reply #3 on: 31 Dec 2005, 06:45:00 »
Ok, I'm getting it.

Pilot, what if I want other radio to be available when not in a trigger area?

What if I have radiomsgs set to 0. Then when I enter the trigger area they are set to 1 or whatever the syntax is.
Can I do it with 1 trigger or will I need two? One for not present and one for present?
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."

marcus3

  • Guest
Re:Radio replies inside trigger areas.
« Reply #4 on: 31 Dec 2005, 07:24:45 »
u just need one, when u are presnet it runs the on activeon field, and when u are not presesnt, it runs the on deaction field, make sure the trigger is set to reapty ;D

Offline Pilot

  • Contributing Member
  • **
Re:Radio replies inside trigger areas.
« Reply #5 on: 31 Dec 2005, 16:29:26 »
Quote
Pilot, what if I want other radio to be available when not in a trigger area?
umm, before I answer this, are the radios scripted?

Quote
What if I have radiomsgs set to 0. Then when I enter the trigger area they are set to 1 or whatever the syntax is.
Can I do it with 1 trigger or will I need two? One for not present and one for present?
Big Boss Marcus is right, you will only need one trigger.  When the player is in the trigger, the code in the On Activation field will run.  When the player is not in the trigger, the code in the On Deactivation will run.  The trigger must be set to fire repreatedly, though.

-Pilot

marcus3

  • Guest
Re:Radio replies inside trigger areas.
« Reply #6 on: 31 Dec 2005, 20:15:13 »
i am assumeing that he is useing actions like 'use radio'  :P not sure tho ::)

ROBINO

  • Guest
Re:Radio replies inside trigger areas.
« Reply #7 on: 03 Jan 2006, 17:22:17 »
try this in the radio activation

arrayunits1 = thislist

and run a looping script on each client to check if they are included in arrayunits1 if not then set boolean which the radio script requires to false

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Re:Radio replies inside trigger areas.
« Reply #8 on: 04 Jan 2006, 21:41:27 »
It's ok, I went around the problem a different way. Thanks anyway.
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."