Home   Help Search Login Register  

Author Topic: Radio Alpha only appear in trigger area...  (Read 1826 times)

0 Members and 1 Guest are viewing this topic.

Offline stephen271276

  • Members
  • *
Radio Alpha only appear in trigger area...
« on: 09 Feb 2011, 17:05:23 »
As it says guys.....Any way to have a trigger with radio alpha trigger only usable in a the trigger area?
 My mission ivolves raiding a training camp capturing a vip and calling an evac using a trigger but only want the evac trigger usable in the camp area

Offline F2kSel

  • Members
  • *
Re: Radio Alpha only appear in trigger area...
« Reply #1 on: 09 Feb 2011, 17:51:58 »
Well you can create the trigger normally  and if it's Alpha you can disable it until your ready to use it.

Disable
Code: [Select]
1 setRadioMsg "NULL"
Enable
Code: [Select]
1 setRadioMsg "working"
The problem is when you do enter the trigger and enable the radio it will be enabled for all Group Leaders at the same time.   Radios cannot be locked to one player.   The only other way I know of is to forget the radio and just use addaction in a trigger

Anyone
present
Repeating


cond
Code: [Select]
player in thislist
on act
Code: [Select]
act = player addAction ["Use Radio","dothings.sqf"]
on dea
Code: [Select]
player removeAction act

Addaction can also be placed in an objects init directly and has other options.
« Last Edit: 09 Feb 2011, 18:26:36 by F2kSel »

Offline stephen271276

  • Members
  • *
Re: Radio Alpha only appear in trigger area...
« Reply #2 on: 09 Feb 2011, 18:45:37 »
Do you know of a script that would set off my POW evac?
at the minute I have a evac group with 1st WP "get in" a chopper then the next Wp's direct them to collect the vip. The 1st "getin" WP is synced to the Alpha radio command which sends them in to collect, the problem is this radio command is available from the start of the mission so if some one activates it it ruins the whole mission thats y i only want to be able to use the evac once at the camp

Offline F2kSel

  • Members
  • *
Re: Radio Alpha only appear in trigger area...
« Reply #3 on: 09 Feb 2011, 20:39:08 »
Either methods would work but I would use the addaction command as you can make it specific to the player in the trigger area.

Just walk into the trigger and you will have an option in the left hand menu to release the prisoners.

There is a five second delay and a hint that need to be removed from the script I just forgot.  

http://www.sendspace.com/file/rhond4



Offline stephen271276

  • Members
  • *
Re: Radio Alpha only appear in trigger area...
« Reply #4 on: 09 Feb 2011, 21:03:56 »
Excellent!!!
Works great thank you.....
Ill post link to this mission when its finished