OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: BronzeEagle on 10 Aug 2004, 06:51:21

Title: realistic radio man script
Post by: BronzeEagle on 10 Aug 2004, 06:51:21
alright bas has a satcom.  It's called bas_satcom.  i need a script that says that if the player whoever has the satcom that the determined sound in the trigger will play from his body.  I will then do a recording of a  special order or something and put it in the description.ext and put it in the game and have it all set up in the trigger under sounds so whoever has the radio, you hear the orders coming from their radio.  Then its only up to whomever the satcom is on to hear your orders from headquarters.
Title: Re:realistic radio man script
Post by: BronzeEagle on 23 Aug 2004, 07:56:46
still no answer, i found a sleezy alternative, but it fails at if the radio man dies noone else can be radio man and play the transmissions.  I need it to be like , whoever has the radio plays the transmissions, but none of ya'll know how.  Dang.  This would be very innovative.  
Title: Re:realistic radio man script
Post by: Sui on 23 Aug 2004, 09:15:21
There's plenty of these sorts of scripts around I think...

They just hinge on the line:

? player hasweapon "BAS_satcom": ...

Or even:

? "(_x distance player < 5) and (_x hasweapon {BAS_satcom})" count units player > 0: ...

Do a bit of experimenting and see what you come up with ;)
Title: Re:realistic radio man script
Post by: BronzeEagle on 25 Aug 2004, 03:35:32
Sui I know nothing about scripting but you've given me a jumpstart.  So, im going to try something along the lines of that.  I'm not even a scripter but ill get my scripting friend to do it.  Thanks again.  No, theres not plenty of these sorts of scripts around, but if you like you can make the first.  I do search before i post.