Home   Help Search Login Register  

Author Topic: bas satcom and seb nam radio working?(script)  (Read 1778 times)

0 Members and 2 Guests are viewing this topic.

supergruntsb78

  • Guest
bas satcom and seb nam radio working?(script)
« on: 13 Jun 2003, 00:43:26 »
anybody any idea as how to make the radio's made by BAS and SEB (prc-25) work ?

like if you fire them that a certain script kicks in and a conversation starts between you and the base

i only need to know how to make it so when you fire the radio your line of speech is activated (calling the base etc.)

thanks in advance


Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:bas satcom and seb nam radio working?(script)
« Reply #1 on: 13 Jun 2003, 01:15:52 »
u can use eventhandlers

unitname addeventhandler ["fired",somthin]

just donno how 2 check if it was radio firing - donno wat it fires but u can check dat by doin

Code: [Select]
unitname addeventhandler ["fired",hint format ["%1",_this]]

nd it wil show wat u fired wen u use da radio ;D

LCD OUT

"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

supergruntsb78

  • Guest
Re:bas satcom and seb nam radio working?(script)
« Reply #2 on: 13 Jun 2003, 02:07:36 »
i tried it and cant get it to work (the checking what is fired :( )

where do i put it ?

when i put it in the units init it reads my call sign (alpha black 1) and my player name and nothing else

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:bas satcom and seb nam radio working?(script)
« Reply #3 on: 13 Jun 2003, 08:09:20 »
Nah forget that

Eventhandler Hit doesn't recognize firing the radio weapon.

What you can do is: check if 1 unit of your group
hasweapon "bas_satcom", and if so then let some radio calls
become visible, or some action buttons (right bottom menu).

~S~ CD
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:bas satcom and seb nam radio working?(script)
« Reply #4 on: 13 Jun 2003, 08:13:14 »
Quote
Eventhandler Hit doesn't recognize firing the radio weapon.

its eventhandler fired ;) :P

but i think i know y - dats cuz da radio doesnt realy fire nythin   :-\

[edit] but cant we just check if wen da radio fired - it didnt find nythin xept da unitname ?

LCD OUT
« Last Edit: 13 Jun 2003, 08:14:06 by LCD »
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:bas satcom and seb nam radio working?(script)
« Reply #5 on: 13 Jun 2003, 13:10:36 »
nope LCD, i've been playing around with the same idea,
once SEBNam pack or BAS_units were released.

Guess what i was trying to do  ;D

I've started a script by the eventhandler fired, just 2 display
da whole _this array. It worked fine everytime i've fired a shot,
but no message came up when firing the radio weapon.

OK, maybe i've just locked to much on the target _this to be
displayed. Instead of displaying the array _this or some elements of it, i'll try to display just a test message, not related
to the array of the eventhandler fired.

Will report this later on here

~S~ CD
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:bas satcom and seb nam radio working?(script)
« Reply #6 on: 13 Jun 2003, 22:41:07 »
Well, i've tried following:

eventhandler fired executes a script, which only displays
a message "script runs"

firing a rifle: "script runs"

firing the radio:

So the eventhandler fired doesn't recognize if the radio weapon
has been fired (as i already said above).

~S~ CD
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:bas satcom and seb nam radio working?(script)
« Reply #7 on: 13 Jun 2003, 22:50:11 »
think dats cuz da radio sound is of empty mag - so it dont realy fires ;D

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

VUSN042

  • Guest
Re:bas satcom and seb nam radio working?(script)
« Reply #8 on: 13 Jun 2003, 23:12:56 »
Chris,

Try adding and/or manually loading a magazine into it.  I tried all this ages ago and seem to remember something odd about the BAS radio weapon that needed something to be done manually.

I *think* it was that the radio weapon the radioman carries is actually empty for some reason, and that when I manually added a magazine things all started working...


Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:bas satcom and seb nam radio working?(script)
« Reply #9 on: 14 Jun 2003, 00:55:05 »

 :o WTF  ???


Chris, my man! waddup!  :D ;)  

Sorry, this is totally off the spot but how on earth is THIS possible? :


(Reply #5 on: Today at 12:10:36pm »  by chris):

and then:

(Reply #6 on: Today at 09:41:07pm »  by Chris)  :o ??? ;D

see?! that is ODD, man!


Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:bas satcom and seb nam radio working?(script)
« Reply #10 on: 14 Jun 2003, 01:27:04 »
ROFL

is da danish timeline dat got broken up after all denmark got drunk after da game ::) (:cheers: i support u more dan da oder eouru countries ;) ;D)

da time is kool 4 me ;D

2 pm n 11 pm

LCD OUT

« Last Edit: 14 Jun 2003, 01:30:52 by LCD »
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:bas satcom and seb nam radio working?(script)
« Reply #11 on: 14 Jun 2003, 01:28:47 »
 :-X well.... I've had a few beers... so what - I see what I see!  ::) its there, LC  :o ???

nevermind  ;D


Babalon

  • Guest
Re:bas satcom and seb nam radio working?(script)
« Reply #12 on: 14 Jun 2003, 01:34:17 »
Try this.

If the radio operator is set from the start, then just have it set so he can use radio command to execute your script.  Get it?  He has the radio, so he uses the radio commands?

Now what if it is a weapon you pick up from a ammo crate or a dead person?

In this case, were lookign at a two script operation.  One your script you want the radio call to run, and two, a script to check and see if the player has the radio.

When the unti has the radio, then the trigger in the first script is triggered, and it exec the second script, then exits.

The second script creates the triggers/radio commands available ot the unit that just picked up the radio.  It should also have a line in it that deactivates the radio commands form that player if they drop the weapon.

Now the guy with the radio hits the radio sequence to exec the script (or how many scripts/options/radio commands you want him to be able to choose).

I dont have time, but I'm sure you can find a Tutorial on how to make the scripts you need, or ask someone to help.  In short, this is the easiest way to do this, and the most practical.  Not to mention in my experience of trying ot do it, the only way that really works.

Offline MI_Fred

  • Members
  • *
  • AA
    • OFP Team Finlanders
Re:bas satcom and seb nam radio working?(script)
« Reply #13 on: 14 Jun 2003, 02:06:19 »
Quote
da oder eouru countries
Hehehhehoho, that was funny. No seriously what are you talking about in this most sacred of them all threads  ;D

No but what was funny was when I tried what VUSN042 suggested, with the BAS Satcom, and well I did get some extra stuff, like an option to reload the satcom battery, but still nothing when I fire it. Actually less than before, not even that smoothing and cumulating radio buzz... Here's how:
Quote
in a gamelogics init:
wpnh = "weaponholder" createVehicle getPos this; wpnh addWeaponCargo ["BAS_SATCOM",1]
Quote
and for the a unit:
this addEventHandler ["fired",{_this exec "mmh.sqs"}]; this removeMagazines "handgrenade"; this addMagazine "BAS_SATCOM"
and in mmh.sqs: hint format ["%1",_this] returning something every time I fire anything but the satcom. Funny they don't mention nuffin bout tis n da rydme...wops, erm, and I was the one awing their marvellous readme's... And the sad part is that this is not the case with sebprc25, prolly not with da gook radio, how could it...  :(

* MI_Fred throws a fish lure 3000 in VUSN042's brain hoping to scrounge up some good info

Babalon it might be true it's practical, but takes more thinking than this, what can be better than an eventhandler? Well ofcourse something that works also in MP... But primarily I don't ever wan't actions hangin about in the right corner of mi eye..
« Last Edit: 14 Jun 2003, 02:07:24 by MI_Fred »
There's gooks over there, there's mines over there, and watch out those goddamn monkeys talk, I'll bite ya.

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:bas satcom and seb nam radio working?(script)
« Reply #14 on: 14 Jun 2003, 18:53:54 »
Quote
Chris, my man! waddup!    

Sorry, this is totally off the spot but how on earth is THIS possible? :


(Reply #5 on: Today at 12:10:36pm »  by chris):

and then:

(Reply #6 on: Today at 09:41:07pm »  by Chris)    

LMAO - i forgot to return with me timemachine

Nah - could be it's because i posted that from two different
locations (#5 from PC at work and #6 from ma PC at home)

 ;D

~S~ CD
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted