Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: In car stereo  (Read 611 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
In car stereo
« on: 14 Mar 2005, 02:28:28 »
I was sure that there was a script out there that did this but I can't find it. I'm going to put it up as an idea here instead.

Here's the deal.

I want a script that will let me get into an enemy vehicle and become a captive (setcaptive true), I want to be able to drive the vehicle about and have radio chatter audible from inside.

If I get out of the vehicle obviously the chat would stop and I'd no longer be captive. Also, If possible, I'd like it so that if I got within a certain distance of an enemy player I'd no longer be captive. As if he'd seen that I was a bad guy. Another thing that would switch me from setcaptive true to false would be if I fired a gun from the vehicle, like machinegun.

Possible?
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."

DBR_ONIX

  • Guest
Re:In car stereo
« Reply #1 on: 15 Mar 2005, 23:10:46 »
Basic bones of script :
Code: [Select]
_vehicle = _this select 0
#start
?(driver _vehicle == player):GOTO "safe"
~5
goto "start"

#safe
player setcaptive true
car say "radioClass"
goto "start"

That works best if the radio stuff is 5 seconds long, and a loop.. Change ~5 to a better lenght

Like I said, jsut bones of script
- Ben