Home   Help Search Login Register  

Author Topic: Refueling  (Read 411 times)

0 Members and 1 Guest are viewing this topic.

Offline Killzone

  • Members
  • *
  • War is the true Enemy
Refueling
« on: 21 Nov 2003, 19:17:54 »
Hello is there a way to have the refuel truck refuel, lets say a tank when it gets within a certain distance of the tank.

For example I order the tank across the island and 1/2 way there it runs out of fuel so now I must send the refuel truck to the tank. I want it to refuel automatically when it arrives at the tank.

Is this possible?

Thanks in advance  ;D  ;D ;D
"Everyone dies so deal with it and move on"

                                                      ME

KyleSarnik

  • Guest
Re:Refueling
« Reply #1 on: 21 Nov 2003, 20:37:19 »
Yea, when the truck is a certain distance from the tank, use the setfuel command and set its fuel to 1, like this:

tank1 setfuel 1

gundernak

  • Guest
Re:Refueling
« Reply #2 on: 21 Nov 2003, 20:40:37 »
 yes you can do it.

you have to check the distance between the to vehicle. If it is lesser than a certain distance refueling will happen.

so....
make a trigger which contains the territory they will meet, and put this in condition field:

tankname distance truckname < 5

and this to on activation field:

tankname setFuel 1

you can move the truck with: 'truckname doMove getPos tankname'