TJ_au 0 Posted April 18, 2007 Is there any way to find out who activated a radio trigger. Or who spotted the detected units in a detect trigger. Share this post Link to post Share on other sites
fasad 1 Posted April 18, 2007 >>Is there any way to find out who activated a radio trigger. Not that I know of. It would be useful though. If you have a small known number of players you could create a duplicate trigger for each player with a condition that excludes all other units from activating it. eg: this&&(player == player1) I would expect/hope radio triggers use less resources than the other types, so performance loss should be minimal. >>Or who spotted the detected units in a detect trigger. Not directly. You could figure which group spotted the detected unit by using knowsAbout and thisList. You could create another larger, present trigger to get a list of possible spotters. A direct method would also be useful. Share this post Link to post Share on other sites
TJ_au 0 Posted April 18, 2007 I'm mainly trying to make a way of restricting the use of a radio trigger to a side. I thought there was a way of finding out in OFP. Share this post Link to post Share on other sites
speeder 0 Posted April 18, 2007 <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> from the init.sqs: [] exec "radio_com.sqs" exit Make: radio_com.sqs Write: ?(name player) == (name NameOfTheManWhoNeedsToSeeTheRadio): Goto "OKPLAYER" ;clear for all others 1 setradiomsg "NULL" 2 setradiomsg "NULL" 3 setradiomsg "NULL" 4 setradiomsg "NULL" 5 setradiomsg "NULL" 6 setradiomsg "NULL" 7 setradiomsg "NULL" 8 setradiomsg "NULL" exit #OKPLAYER 1 setradiomsg "Title of Radiochannel" 2 setradiomsg "Title of Radiochannel" 3 setradiomsg "Title of Radiochannel" 4 setradiomsg "Title of Radiochannel" 5 setradiomsg "Title of Radiochannel" I hope that helps Share this post Link to post Share on other sites
fasad 1 Posted April 18, 2007 Awesome, another handy command I've never noticed Share this post Link to post Share on other sites
Op4 BuhBye 0 Posted April 19, 2007 Or you can define an array(s) in the init.sqs and add the slot name to it and put it in the condition field in the trigger. The down side is you need to write a script to put the player back in the array if there is respawn. But thats a good one too. I didnt know it either. As far as the finding out who did what. Yes you can. Ill have to look into my stuff cause I dont remeber how to do it. If you want to look yourself go into a CTF and find the trigger that reports who has the flag and mod it to what you want. Share this post Link to post Share on other sites