OFPEC Forum
Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: stephen271276 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
-
Well you can create the trigger normally and if it's Alpha you can disable it until your ready to use it.
Disable
1 setRadioMsg "NULL"
Enable
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
player in thislist
on act
act = player addAction ["Use Radio","dothings.sqf"]
on dea
player removeAction act
Addaction can also be placed in an objects init directly and has other options.
-
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
-
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 (http://www.sendspace.com/file/rhond4)
-
Excellent!!!
Works great thank you.....
Ill post link to this mission when its finished