Home   Help Search Login Register  

Author Topic: mg nests  (Read 791 times)

0 Members and 1 Guest are viewing this topic.

Offline 456820

  • Contributing Member
  • **
mg nests
« on: 16 Jul 2005, 09:51:39 »
okay in a mission there is an M2 machine gun nest its your choice if you want to get in it or not
but if you do and when you get out your leader keeps saying '# gunner get in machine gun' wich is really anoying how can i get that to stop ?

CopyrightPhilly

  • Guest
Re:mg nests
« Reply #1 on: 16 Jul 2005, 10:06:04 »
well the command is 'unassignvehicle unit'

so...

how about this:
make a trigger,

activation: none
mode: repeatedly
condition: !(player in mgname)
on activation: unassignvehicle player

so that should work...
just change the name from mgname to what ever the name of the mg is in the condition filed

cheers,
Phil


Offline 456820

  • Contributing Member
  • **
Re:mg nests
« Reply #2 on: 16 Jul 2005, 11:04:20 »
ahh thanks ill have a go but i tried something like that but my leader kept telling me to get out then i appear just outside and next time i get in he doesnt matter

CopyrightPhilly

  • Guest
Re:mg nests
« Reply #3 on: 16 Jul 2005, 11:08:31 »
well that would make sence come to think of it...

a way round it would be:

make yet another trigger

activation: none
mode: repeatedly
condition: (player in mgname)
on activation: player assignasgunner mgname

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:mg nests
« Reply #4 on: 16 Jul 2005, 16:40:55 »
there is a problem with your triggers.  the unassignvehicle one will constantly activate, unassigning him from whatever vehicle he's in

activation: none
mode: repeatedly
condition: (player in mgname)
on activation: player assignasgunner mgname; in_mg = true

activation: none
mode: repeatedly
condition: !(player in mgname) && in_mg
on activation: unassignvehicle player; in_mg = false

that wouldfix it

Offline 456820

  • Contributing Member
  • **
Re:mg nests
« Reply #5 on: 16 Jul 2005, 18:43:05 »
thanks alot havent tried it but i trust you for it to be right also it looks about right it all makes sense
thanks alot
#topic solved