Home
Intel Depot
Editors Depot
Missions Depot
Addons Depot
Forum
Home
Help
Search
Login
Register
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
Refueling
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: Refueling (Read 412 times)
0 Members and 1 Guest are viewing this topic.
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
Logged
"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
Logged
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'
Logged
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
Refueling
Top of page