Author Topic: objective mode.  (Read 507 times)

Offline muratti

  • Newbie
  • *
  • Posts: 21
    • View Profile
objective mode.
« on: 16-01-2012, 23:01:03 »
Im trying to make the objective mode work but I cant.  I used thise code i took it from PDH:

from game.plugins import plugin, destroyObjective

end_objective = [
    plugin(destroyObjective, controlpoint = 'Factory', \
         refcount = 1, \
         template = 'factory_poland_01_dest'),
        ]

gpm_cq = {
  64: end_objective,
    }

I went ingame destroyed the factory and nothing happend. its suppose to swap the flag the object its connected to but that didnt happen.

can anyone help me with this?

azreal

  • Guest
Re: objective mode.
« Reply #1 on: 17-01-2012, 01:01:19 »
I feel like your code might be missing some lines, but I'm not sure. I haven't played around with python in a few months now. :/

Anywho, try using a destroyable object already found in FH2. I'm assuming factory_poland_01_dest is a custom object?

Offline muratti

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: objective mode.
« Reply #2 on: 17-01-2012, 14:01:27 »
I tried it with the 155mm guns from PDH but the gun didn't spawn as an objective(no star).

Offline muratti

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: objective mode.
« Reply #3 on: 20-01-2012, 18:01:15 »
does anyone know about the objective code?