Home   Help Search Login Register  

Author Topic: Ofp trigger problem [SOLVED]  (Read 2630 times)

0 Members and 1 Guest are viewing this topic.

Offline 33OF11PE00

  • Members
  • *
Ofp trigger problem [SOLVED]
« on: 13 Dec 2012, 18:38:21 »
I have this question: How to make trigger to react ONLY to certain unit not whole side( East present/West present/Resistance present)?
« Last Edit: 09 Jan 2013, 16:01:49 by Gruntage »
OFP Forever!

Offline Gruntage

  • Missions Depot
  • Administrator
  • *****
  • How do I get outta this chickensh*t outfit?
Re: Ofp trigger problem
« Reply #1 on: 13 Dec 2012, 18:47:02 »
Group the trigger to the selected unit.


Regards,
Gruntage
"But one thing I can tell you from not just OFP but life in general:  criticism is directly proportional to quality. The more criticism a mission receives, the better the outcome" - macguba

Offline 33OF11PE00

  • Members
  • *
Re: Ofp trigger problem
« Reply #2 on: 13 Dec 2012, 19:02:25 »
Gruntage:
Can you put some code for example?
OFP Forever!

Offline Gruntage

  • Missions Depot
  • Administrator
  • *****
  • How do I get outta this chickensh*t outfit?
Re: Ofp trigger problem
« Reply #3 on: 13 Dec 2012, 19:08:41 »
There's no code. You just place your normal trigger, and a unit. Press F2 and drag a group line from the trigger to the unit.

The trigger condition will become 'vehicle present', instead of 'side present'.
"But one thing I can tell you from not just OFP but life in general:  criticism is directly proportional to quality. The more criticism a mission receives, the better the outcome" - macguba

Offline 33OF11PE00

  • Members
  • *
Re: Ofp trigger problem
« Reply #4 on: 23 Dec 2012, 16:43:59 »
Gruntage:

Thanks!  :clap:. Just what I needed.

Additional question:
How to arm squad with weapons in weapon config panel?
I mean: Remove all weapons from squad and do arming by yourself.
OFP Forever!

Offline Gruntage

  • Missions Depot
  • Administrator
  • *****
  • How do I get outta this chickensh*t outfit?
Re: Ofp trigger problem
« Reply #5 on: 23 Dec 2012, 17:02:42 »
To remove all weapons from your squad, put this in the group leader's Init field:

Code: [Select]
"removeallweapons _x" foreach units group this
*syntax not guaranteed

You can then add weapons to each individual unit using 'addweapon' and 'addmagazine' commands.
"But one thing I can tell you from not just OFP but life in general:  criticism is directly proportional to quality. The more criticism a mission receives, the better the outcome" - macguba

Offline 33OF11PE00

  • Members
  • *
Re: Ofp trigger problem
« Reply #6 on: 23 Dec 2012, 17:25:08 »
I mean arming like this:
1) remove all weapons from my squad

2) arm them with that briefing screen equipment panel

This is what I am meaning here.
OFP Forever!

Offline Gruntage

  • Missions Depot
  • Administrator
  • *****
  • How do I get outta this chickensh*t outfit?
Re: Ofp trigger problem
« Reply #7 on: 23 Dec 2012, 18:10:25 »
Make a description.ext and put this in it:

Code: [Select]
class Weapons
{
// Add the weapons to the mission gear
class 6G30
{
Count = 3;
};
};

class Magazines
{
// Add the magazines to the mission gear
class 6G30Magazine
{
Count = 15;
};
};

Using this example, on the briefing screen you can give a total of 3 6G30 grenade launchers, with 15 magazines. You can add more weapons and magazines, you just need the names.

You don't need to remove the weapons of your squad if you are giving them weapons in the briefing screen. You just replace what they start with.

List of OFP Weapon names: http://www.ofpec.com/COMREF/index.php?action=read&id=67
"But one thing I can tell you from not just OFP but life in general:  criticism is directly proportional to quality. The more criticism a mission receives, the better the outcome" - macguba

Offline 33OF11PE00

  • Members
  • *
Re: Ofp trigger problem
« Reply #8 on: 23 Dec 2012, 18:13:47 »
Gruntage:

OH YEAH! This is just what i needed for my mission.
By the way: Merry Christmas to you all at OFPEC.

One thing more:
I changed my 3G Mokkula connection to 50M cable. Yeehaw!  :blink: :clap:
« Last Edit: 23 Dec 2012, 18:17:37 by 33OF11PE00 »
OFP Forever!