Iceman
|
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
|
|
Broozer
Private
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
|
|
Godfather
|
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.
|
|
RickmanBR
Private
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
|
|