|
Delta Force Anything to do with the Delta Force series of games, DF1, DF2, LW, TFD, BHD, DFX, AF etc. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||
|
Stop the map breakers
Did I mention this before?
Sick of map breakers? here is a very deadly answer... Tutorial: Variable Area Trigger stompem 2013 This is an example script, It will bombard any player(s) who enter area1 before all units in group2 (objective AI targets) are destroyed. The script will notify the player(s) with text. Bombing will cease when the player(s) leave area1. The script will turn itself off completely when all units in group 2 are successfully destroyed. ;In the Map Editor Create Group 2 the Objective group. (you are Group 1) Make 1 Area trigger called area(1) Make 3 events: event(0) event(1) and event(2) as listed below. Event 0: Trigger Variables Triggers: Group 1 is within area 1 and Group 2 has not been destroyed Actions: Execute WAC Event 1: Trigger Text Reset after 10 seconds Delay event 1 seconds Triggers: Event 0 has been triggered Actions: Execute WAC Event 2: Trigger Reset Reset after 10 seconds Triggers: Group 1 is not within area 1 Actions: Reset Event 0 COPY THE SCRIPT BETWEEN THE LINES... //...[Start_VARIABLE AREA TRIGGER] //...[Turn Variable ON/OFF] if event(0) then set(v50,1)//...........[ON] set(v51,1)//...........[ON] else set(v50,0)//..........[OFF] set(v51,0)//..........[OFF] endif //...[Mortars - Var50.1] if eq(v50,1) then ploop ammoarea AMMO_60MM_MORTAR(1) ammoarea AMMO_60MM_MORTAR(1) ammoarea AMMO_60MM_MORTAR(1) chain(1) ammoarea AMMO_60MM_MORTAR(1) ammoarea AMMO_60MM_MORTAR(1) ammoarea AMMO_60MM_MORTAR(1) end endif[/B] //...[Mortars - Var51.1] if eq(v51,1) then ploop chain(8) ammoarea AMMO_60MM_MORTAR(1) ammoarea AMMO_60MM_MORTAR(1) ammoarea AMMO_60MM_MORTAR(1) chain(1) ammoarea AMMO_60MM_MORTAR(1) ammoarea AMMO_60MM_MORTAR(1) ammoarea AMMO_60MM_MORTAR(1) end endif //...[Text On] if event(1) then ptext("<cfcFF0000>WARNING!<-co> BLUE TEAM OFF MISSION!") endif //...[Text Off] if eq(v50,0) and chain(2) then ptext("<-co>") endif if chain(3) then ptext("<-co>") endif if chain(3) then ptext("<-co>") endif //...[End_Variable] |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|