- Joined
- Sep 15, 2006
- Messages
- 426
I'm having a problem with a map I'm making. It makes a gunfire sound whenever a unit attacks. I can hear it fine when I host the map, but apparently nobody else can. Here's my trigger. What's going on with this?
-
Tactical
-
Events
- Unit - A unit Is attacked
-
Conditions
- (Unit-type of (Attacking unit)) Equal to Marine [|cff00ff00.45 Tactical|r] (.45 Tactical)
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Charges remaining in (Item carried by (Attacking unit) of type |cffcccccc.45 Tactical|r)) Greater than 0
-
Then - Actions
- Sound - Play assaultrifle <gen> at 100.00% volume, attached to (Attacking unit)
- Item - Set charges remaining in (Item carried by (Attacking unit) of type |cffcccccc.45 Tactical|r) to ((Charges remaining in (Item carried by (Attacking unit) of type |cffcccccc.45 Tactical|r)) - 1)
- Wait 0.30 seconds
- Special Effect - Create a special effect attached to the origin of (Attacked unit) using Objects\Spawnmodels\Critters\Albatross\CritterBloodAlbatross.mdl
-
Else - Actions
-
Player Group - Pick every player in (Player group((Owner of (Attacking unit)))) and do (Actions)
-
Loop - Actions
- Unit - Order (Attacking unit) to Stop
- Game - Display to (Player group((Owner of (Attacking unit)))) the text: |cffffff00OUT OF AM...
-
Loop - Actions
-
Player Group - Pick every player in (Player group((Owner of (Attacking unit)))) and do (Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events