Home   Help Search Login Register  

Author Topic: Honk Yer Horn  (Read 495 times)

0 Members and 1 Guest are viewing this topic.

SGT_SAVAGE

  • Guest
Honk Yer Horn
« on: 24 Jan 2005, 04:55:04 »
I was wondering how do you get the AI to honk the horn of the vehicle they are driving?

thanks  :)

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:Honk Yer Horn
« Reply #1 on: 24 Jan 2005, 06:18:37 »
Well, the horn is actually a "weapon" that has no ammo. So I would think:

vehicle fire "weaponname"

would work. The actual names of the horns, taken from the bis's commented game config, are:

CarHorn
TruckHorn
SportCarHorn

There may be more horns in custom addons, or in o.pbo (the stuff added by OFP:R). However, this might work in the general case:

vehicle fire primaryweapon vehicle

Or perhaps:

vehicle fire (weapons vehicle select 0)

Of course, those likely won't work if the vehicle has real weapons too...
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Re:Honk Yer Horn
« Reply #2 on: 24 Jan 2005, 22:28:23 »
I'm not as bright as the Barron, so I recorded the horn and then used the sound file when I needed the sound.
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."

Silencer

  • Guest
Re:Honk Yer Horn
« Reply #3 on: 24 Jan 2005, 23:43:30 »
If you use playsound, it can work as well. If you need a horn sound, just depbo the resistance campaign, and grab the sound from the first mission :)

Good luck!