Home   Help Search Login Register  

Author Topic: fuel station objective  (Read 1410 times)

0 Members and 1 Guest are viewing this topic.

redmenace

  • Guest
fuel station objective
« on: 16 Dec 2005, 02:19:38 »
Hey,

how would I make it so an objective is complete upon destroying a paticular fuel depot?

thanks

Offline SEAL84

  • Members
  • *
  • Always lurking
Re:fuel station objective
« Reply #1 on: 16 Dec 2005, 02:27:10 »
You can use a trigger.  Place it on the map right next to the fuel station and hit F2, then drag the thin line to the gas station itself.  the trigger will say "static object" and click "not present."  The gas station must be within the trigger's radius; hence when it's destroyed it won't be there anymore and the trigger will fire.

Then in the "on activation" field, type

"objective_1" objstatus "DONE"

where "objective_1" is whatever you named the objective in the briefing file.
« Last Edit: 16 Dec 2005, 02:27:56 by SEAL84 »

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:fuel station objective
« Reply #2 on: 16 Dec 2005, 17:49:16 »
I didn't know about that.  An alternative is:

get the object id of the fuel station from the map and set a trigger to fire on

getDammage (object XXXX) > 0.95

where XXX is the object id number of the fuel station

marcus3

  • Guest
Re:fuel station objective
« Reply #3 on: 16 Dec 2005, 18:31:31 »
or
make a trigger, in condtion field put

not canmove (object XXXX)

then, in the onactive field put

"X" objstatus "DONE"
 ^
X = the number of the objectve

hope this helps  ;)

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:fuel station objective
« Reply #4 on: 16 Dec 2005, 18:57:07 »
Emmm, do fuelstations move?

AFAIK static objects can't move anyway.

Should work for vehicles though.   ;)

Planck
I know a little about a lot, and a lot about a little.

redmenace

  • Guest
Re:fuel station objective
« Reply #5 on: 16 Dec 2005, 19:52:03 »
the first one works anyway :p

marcus3

  • Guest
Re:fuel station objective
« Reply #6 on: 16 Dec 2005, 20:24:28 »
well...it works for me  ;D

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:fuel station objective
« Reply #7 on: 16 Dec 2005, 21:33:20 »
Musing on options - it might even be possible to put a killed Event Handler on the thing.  I have done that with a table.

Offline Morglor9

  • Members
  • *
Re:fuel station objective
« Reply #8 on: 17 Dec 2005, 06:11:58 »
how does a table die?
Cymbaline

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:fuel station objective
« Reply #9 on: 17 Dec 2005, 09:58:25 »
If you shoot it enough times - or hit it with a grenade.  A bit like a person really