Last active: Never
Not logged in [Login - Register]
Portal Portal   Search the forums Search   Frequently Asked Questions FAQ   View member list Member List   Staff Staff List   View Topic Activity Topic Activity   Forum Stats Stats   Board Rules Board Rules   Downloads Downloads
Go To Bottom

Printable Version | Subscribe | Add to Favorites  
Author: Subject: Rocket Attack
Iceman
Owner/Admin
*********

Avatar

Avatar


Posts: 1272
Registered: 2-4-06
Location: Adelaide South Australia
Member Is Offline

Mood: Very happy

smug.gif posted on 24-5-09 at 07:16
Rocket Attack


This script Sets the Variable for a rocket attack if player is in area trigger #2 and group #3 is alive.

If ssnarea (10000,2) and groupalive (3) and never then
set (v1,1) // variable set to activate the rockets.
endif


This script starts a rocket attack at area #1 if group #3 is alive.

if eq (v1,1) and groupalive (3) then
ammoarea ammo_rocket (1) //start the rockets.
endif


This script ends a rocket attack if group #3 is dead.

if eq (v1,1) and groupdead (3) and never and elapse 1 and waveready then
text("The Bad Guys have been taken out.")
Wave("happy1.wav",100)
set (v1,0) //ends the rockets.
endif






http://www.dfreload.com/eagle/sigs/16.gif

http://www.dfreload.com/sigs/doc_bar.gif

http://www.dfreload.com/sig/teamreload3.gif

View user's profile Visit user's homepage View All Posts By User U2U Member
Broozer
Private


Avatar

Avatar


Posts: 7
Registered: 25-4-10
Member Is Offline


[*] posted on 27-6-11 at 04:17


can you make a map in dfx x2 to show the end results because im a nooby to wac files.

thanks
View user's profile Visit user's homepage View All Posts By User U2U Member
Godfather
Super Administrator
*********

Avatar



Posts: 20
Registered: 11-6-06
Member Is Offline

Mood: No Mood

[*] posted on 28-6-11 at 01:38


If ssnarea (10000,2)

Just a reminder that ssn#10000 ONLY works in single player missions. When used multiplayer only the host can trigger your event and if it's hosted on a dedicated server it will never trigger.
View user's profile View All Posts By User U2U Member
RickmanBR
Private


Avatar

Avatar


Posts: 41
Registered: 27-4-09
Location: Brazil-Rio de Janeiro
Member Is Offline

Mood: Hopeful

[*] posted on 28-6-11 at 02:12


At exactly! if you are making a single player to BHD, DFX or JointOps, you can use ssn 10000 (it also works for the player host: server & play).

But if you want to trigger the operation of the Multiplayer / COOP, will have to use: Ploop + Player, for example:

PLOOP
If ssnarea3d(player,2) and groupalive(3) and never then
set (v1,1)
endif
END


tip:
use "area3d" is more secure than only "area", you should adjust the properties of the area, and Z dimensions




View user's profile View All Posts By User U2U Member This user has MSN Messenger

  Go To Top





Powered by XMB
Developed By The XMB Group © 2001-2008