Home   Help Search Login Register  

Author Topic: using BAS's Radio Operator correctly  (Read 2493 times)

0 Members and 1 Guest are viewing this topic.

Nevres

  • Guest
using BAS's Radio Operator correctly
« on: 22 Feb 2003, 01:09:35 »
Hi, i was looking for some help in usign BAS's Radio Operator Unit, the Radio is listed as a weapon, so what ideas come to mind? like a trigger checking if the unit carriying the radio is dead, then radio commands cant be used, or can the radio be destroyed?

One other thingie, how can i make it so that the radio options appear only if the radio is being carried by a unit?  thanks

Pokletu

  • Guest
Re:using BAS's Radio Operator correctly
« Reply #1 on: 23 Feb 2003, 01:31:21 »
I don't think you have access to the radio commands unless you ARE carrying a radio.  That's my problem.  I guess only the leader of the platoon is able to use the radio by default.  How do you give the radio to a non-leader?

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:using BAS's Radio Operator correctly
« Reply #2 on: 23 Feb 2003, 02:15:49 »
If the radio is a weapon you should be able to check if a loon (or somebody in the group) has got it.   And if that's true, you will be able to decide if radio messages can be made or not.

In standard OFP a radio is not a piece of kit, it's more a kind of  .... attribute.   This addon offers a change to that.

Nevres I suggest you play about with it, see what you find out and post it.   If you get stuck ask BAS directly - I don't know if they have a forum but they are decent blokes.  In regard to your specific question get into the hasWeapon
command.

Plenty of reviewed ArmA missions for you to play

Pokletu

  • Guest
Re:using BAS's Radio Operator correctly
« Reply #3 on: 23 Feb 2003, 03:23:26 »
Where is that "BAS's Radio Operator", anyway?  I can't find it anywhere, let alone use it right :o

Offline punisher

  • Members
  • *
Re:using BAS's Radio Operator correctly
« Reply #4 on: 23 Feb 2003, 10:45:18 »
hi
U can actualy use the radio if even if you are not the leader.You may not be able to access it form the numbers and stuff but click on the map and use it from there
The Gimp clan- pushing the limits of OFP
http://www.youtube.com/user/Pigdogmeat

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:using BAS's Radio Operator correctly
« Reply #5 on: 23 Feb 2003, 12:15:56 »
Pokletu - Ballistic Addon Studios, check Intelligence Depot for link.

It's part of their new Ranger/Delta pack
Plenty of reviewed ArmA missions for you to play

Nevres

  • Guest
Re:using BAS's Radio Operator correctly
« Reply #6 on: 23 Feb 2003, 18:26:03 »
ill try it, but how would you write this with the correct syntax:

if unit hasweapon name of BAS's radio then enable the radio command


Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:using BAS's Radio Operator correctly
« Reply #7 on: 23 Feb 2003, 18:48:02 »
Depends, you can do it either in a trigger or in a script

Trigger

condition:    loon1 hasWeapon "BAS radio"
on activation:    1 setRadioMsg "Send three and fourpence we're going to a dance."



Script

? loon1 hasWeapon "BAS radio": 1 setRadioMsg "Send three and fourpence we're going to a dance."
Plenty of reviewed ArmA missions for you to play

Nevres

  • Guest
Re:using BAS's Radio Operator correctly
« Reply #8 on: 24 Feb 2003, 04:58:42 »
ok, for example, in my mission i have 2 radio commands that i need to use, one is an airstrike, the other is a helo extraction, i want it to be so that if the radio operator is alive, the radio commands for those 2 are available, but if the unit that has the radio is dead, my character cannot access the radio commands untill a live unit has the radio

does it seem complicated??

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:using BAS's Radio Operator correctly
« Reply #9 on: 24 Feb 2003, 05:19:58 »
Hmm... try this trigger out to see if it has the desired effect:

Trigger

Radius: 0,0
Condition: none (repeatedly)
Condition Field: "_x hasweapon ""BAS Radio""" count (units group) > 0
OnActivation Field: 1 setradiomsg "Call Airstrike"; 2 setradiomsg "Helicopter Extraction"
OnDeactivaton Field: 1 setradomsg "null"; 2 setradiomsg "null"

Where BAS Radio is the weapon name for the BAS Radio, and group is the group the player is in.
You'll also want to change the radio message to the exact message you want ;)

What that'll do is when your guy with the radio dies, the trigger will deactivate, turning off your radio messages. Then if another guy in your group picks up the radio, the trigger will actiavte again, and the radio messages will be added in.

Anyway, that's the theory ;D
Try it and see if it solves your problem...

Nevres

  • Guest
Re:using BAS's Radio Operator correctly
« Reply #10 on: 24 Feb 2003, 23:05:43 »
weird, its not working, ive tried  it and nothing, it wont give the option for radio and i know im putting in the right name for the radio.

the weird thing is that it wont even work on a simple example, i put an unmanned jeep named jeep, i placed a trigger with the condition !(alive jeep) on its activation field i wrote 1 setradiomsg "crap" and on the deactivation field i wrote 1 setradiomsg "null" and nothing it wont work when i destroy the jeep, what could be wrong?

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:using BAS's Radio Operator correctly
« Reply #11 on: 25 Feb 2003, 01:38:33 »
Is your trigger set to repeatedly?

That's very important ;)

Nevres

  • Guest
Re:using BAS's Radio Operator correctly
« Reply #12 on: 25 Feb 2003, 04:53:01 »
yes it is set to repeatedly, i even went the extra mile and placed a 1 setradiomsg "null" on the int.sqs so that in the mission it wouldnt show, and then i created the trigger with the radio alpha, but no go, it seems that setradiomsg is a tricky command no?

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:using BAS's Radio Operator correctly
« Reply #13 on: 25 Feb 2003, 10:38:14 »
I use hints to check if a trigger is working ... so instead of the radio message I'd just make it a hint.    Since you can't really go wrong with a hint  ;D  you know whether the problem is with the trigger itself or the command.
Plenty of reviewed ArmA missions for you to play

Nevres

  • Guest
Re:using BAS's Radio Operator correctly
« Reply #14 on: 25 Feb 2003, 18:39:58 »
now its getting weird, the hint activates but the radio doesnt

it gets weirder, i placed a 1 setradiomsg "null" on the init.sqs of the mission, and when i set the activation on the trigger as Radio alpha the hint wont activate at all!!! and the activation of the trigger is !(alive jeep) and im sure i destroyed the jeep

this is over my head, someone help

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:using BAS's Radio Operator correctly
« Reply #15 on: 26 Feb 2003, 00:43:30 »
Sounds like you are getting yourself tied up in knots, its happened to us all.    

There are 3 stages to using the radio

a) the null thing in init.sqs

b) creating the radio trigger by use of another trigger

condition:  !alive jeep
on activation: 1 setradiomsg "make this work"

c) using the radio trigger

activation:  Radio Alpha
on activation:   hint "this works"

as ever, syntax not guaranteed

Keep trying, you're nearly there.  ;)
Plenty of reviewed ArmA missions for you to play

Nevres

  • Guest
Re:using BAS's Radio Operator correctly
« Reply #16 on: 26 Feb 2003, 19:19:26 »
the basic idea here is that i want a trigger to check if a unit on my squad has the radio, if that unit has it, then the radio commands are available, if the unit is dead, then the radio commands are not available its like viceversa to what were trying to do, so the radio command should be available at the beggining but nullify itself if the unit carrying the radio dies

Nevres

  • Guest
Re:using BAS's Radio Operator correctly
« Reply #17 on: 26 Feb 2003, 19:50:27 »
holy crap ive got it!!!!

i started from 0 with Sui's and mcguba's advice and made it work, thanks guys