Home   Help Search Login Register  

Author Topic: Unlimited Fuel?  (Read 577 times)

0 Members and 1 Guest are viewing this topic.

Durandal

  • Guest
Unlimited Fuel?
« on: 30 Dec 2002, 19:44:26 »
Hey all.

I'm trying to figure out a way to give certain vehicles unlimited fuel.  I originally thought I could make it work with a trigger along the same lines as of respawning vehicles in MP.

A detect when fuel is below a certain value and then setFuel 1.

Only problem is, I've been looking through the unofficial OFP command ref and I haven't been able to find a getFuel command, and was wondering if either I'm an idiot and missed it, or if there's another command that accomplishes the same thing.

Or if no to both of the above, any ideas on how I could go about making this work?

Much thanks,

-Durandal

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Unlimited Fuel?
« Reply #1 on: 30 Dec 2002, 20:24:16 »
if u put it like dat so

u r ididot :P

its da fuel command :D

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

Offline Wolfrug

  • Addons Depot
  • Former Staff
  • ****
  • Official OFPEC Old Timer
Re:Unlimited Fuel?
« Reply #2 on: 30 Dec 2002, 20:55:57 »
just to clarify: the command you're looking for is the fuel command :D

just use a repeated trigger:

cond: fuel car < 0.5
on act: car setfuel 1.0

should work ;) I can't imagine how you'd go about emptying the tank though, unless you're planning on driving for hours without end. Anyway there're fuel stations, right? :)

Wolfrug out.
"When 900 years YOU reach, look as good you will not!"

Durandal

  • Guest
Re:Unlimited Fuel?
« Reply #3 on: 31 Dec 2002, 07:01:22 »
Hehe, thanks Wolf.

I've got a civilian-type multiplayer scenario set up where there are NPC drivers going on waypointed routes that are cycled, and I don't want them to run out of fuel after five or ten minutes.

The ambience of them driving by is nice.

-Durandal