Home   Help Search Login Register  

Author Topic: Got radio?  (Read 879 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
Got radio?
« on: 10 Mar 2005, 23:06:19 »
I'm using an addon which has a radio as one of the usable weapons. How do I check if a player has the radio and if so/not make using the 0-0-x possible or not possible?

My radio messages are hidden until triggers are hit if that helps.

Cheers.
« Last Edit: 10 Mar 2005, 23:09:39 by The-Architect »
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."

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Got radio?
« Reply #1 on: 11 Mar 2005, 00:21:10 »
Use a hasWeapon command to check if he has the radio.

Then setRadioMsg either null or text as appropriate.
Plenty of reviewed ArmA missions for you to play

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Re:Got radio?
« Reply #2 on: 11 Mar 2005, 02:43:06 »
Cheers Macguba.
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."

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Re:Got radio?
« Reply #3 on: 11 Mar 2005, 09:09:40 »
Another question.

How do I check to see if anyone from my group has the radio. I don't want to have to lug it around all the time.
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."

Offline Blip

  • Members
  • *
  • ...Old OFP FART...
Re:Got radio?
« Reply #4 on: 11 Mar 2005, 09:14:53 »
I found this in the SEB NAM pack Readme.  It should detect if one of the units in your group is carrying the radio.

Quote
;start radio check--------------------------
;check for radio
_unitarray= units group player
?("_x hasweapon {sebprc25}" count _unitarray)>0:goto "hasradio"
hint "No Radio present"
exit
#hasradio
Hint "Radio Active"

you will have to change the radio though.

Blip :joystick:
...NIGHT WALKER....