Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: Some questions about stealth  (Read 2589 times)

0 Members and 1 Guest are viewing this topic.

Offline ChumyXD

  • Members
  • *
Some questions about stealth
« on: 07 Apr 2013, 06:20:13 »
Hello.

During days, i have tested the editor, and after testing a lot, i finally got an idea. However, when "porting" that idea into a mission of OFP, i have encountered some problems.

1.- I have a trigger, that when starts an alarm sounds, while all the troops wake up of their dreams, so they can move to a determined zone, and the AA crew gets in the Shiikas. It works, but, later, i can call reinforcements that can help the player to take the base, but in other squads. And the trigger only works with my squad. ¿How can i make that, the trigger works too with other squads?

2.- Is there a way to make that the entire East members get in aware mode once the alarm is activated?

3.- ¿How do i put lights that are on? I tried with the "inflame" and "switchlight" commands, but, or the lights are at a much lower zone that it should be, or "ColdWarAssault.exe" crashes.

4.- ¿How do i make an ending trigger, in which all the East soldiers in a determined area are dead, i end the mission?

That´s all for now. Thanks for your help
Not sure if that unknown vehicle is a civilian tractor, or an enemy T-80...

Offline Gruntage

  • Missions Depot
  • Administrator
  • *****
  • How do I get outta this chickensh*t outfit?
Re: Some questions about stealth
« Reply #1 on: 07 Apr 2013, 09:27:51 »
I can answer the 2nd, 3rd and 4th questions.

2. In your alarm trigger, put this in the 'on activation' field:

Code: [Select]
makeaware = true
Now, make another trigger which is set to 'East Present'. Put in the 'Name' box: 'easttrig'. Put 'makeaware' in the condition field, and put this in the On Activation field:

Code: [Select]
{_x setbehaviour "aware"} foreach (list easttrig)
I haven't touched OFP for sometime, so I'm not 100% that that syntax is correct. But that command will make every russian within that the trigger area become 'aware' when the condition 'makeaware' is fulfilled.

3. You would have to download an addon to make streetlamps. Mikeros' Editor Upgrade has some streetlamps. You make them light up with 'this inflame true'.

4. Make a trigger with a medium-large diameter, and make it east not present. In one of the drop down lists (on the trigger set up) you can select various endings like 'end #1'. That's how you make the mission end. I can't remember what the name of the drop down list is.

Hope that helps

"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 Raptorsaurus

  • Editors Depot Staff
  • *****
Re: Some questions about stealth
« Reply #2 on: 11 Apr 2013, 07:37:55 »
If you could attach your existing mission file. It might be easier to help you. For your third probelm (the street lamps) you can disable the the streetlamps and reenable them when there is an alarm condition. Here is an example of how to deactivate multiple street lamps using commands in an init.sqs file (these are actual object numbers from Kolgujev):

Code: [Select]
_lights = [(object 757), (object 68251), (object 7697), (object 7698), (object 7507), (object 7443), (object 7456), (object 3197), (object 14), (object 16887), (object 16886), (object 16888), (object 11127), (object 25328)]
{_x switchLight "off"} forEach _lights

Here is how to reactivate them:

Code: [Select]
_lights = [(object 757), (object 68251), (object 7697), (object 7698), (object 7507), (object 7443), (object 7456), (object 3197), (object 14), (object 16887), (object 16886), (object 16888), (object 11127), (object 25328)]
{_x switchLight "on"} forEach _lights

If you attach your mission file I can give your more help on your other issues.