OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: ChumyXD 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
-
I can answer the 2nd, 3rd and 4th questions.
2. In your alarm trigger, put this in the 'on activation' field:
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:
{_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
-
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):
_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:
_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.