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: [SOLVED] Letting people heal at a vehicle  (Read 2837 times)

0 Members and 1 Guest are viewing this topic.

Offline JasonO

  • OFPEC Patron
  • ****
  • Oh no...
    • The New Life RPG
[SOLVED] Letting people heal at a vehicle
« on: 15 Aug 2007, 22:22:15 »
Hi

I have an ambulance style vehicle, and want people to be able to go up to it and get the option to Heal at it. Basiclly the same as Medic's and the M113 Ambulance.

Hopefully it's not to big to do. But was wondering if anyone knows a solution in how I can add it.

Thanks
JasonO
« Last Edit: 17 Aug 2007, 16:58:36 by JasonO »

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: Letting people heal at a vehicle
« Reply #1 on: 16 Aug 2007, 18:36:19 »
I think the key is to add the token attendant = true; in your vehicle class..
Which happens automatically if you inherit your vehicle class from, say, the BIS M113 ambulance class (M113Ambul).
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline JasonO

  • OFPEC Patron
  • ****
  • Oh no...
    • The New Life RPG
Re: Letting people heal at a vehicle
« Reply #2 on: 17 Aug 2007, 16:58:17 »
Hi h-

attendant=1 did it for me, works perfectly, cheers ;)