You know the game S.W.A.T. where you hear the footsteps, and hear the gunshots, where the sound effects are from Counter-Strike?
I think I may have uncovered the secret, (Encase you haven't). Couldn't open the map in an editor, so I had to do some testing for EDUCATIONAL PURPOSES ONLY.
Don't read if you're just gonna flame me after:
In starforge create 2 locations, which should be the size of 1 unit footstep.
Call one SF1 and SF2.
First you wanna make a start switch:
Trigger |
Description: |
Start Switch |
|
Players: |
¤ Player who walks |
Conditions: |
¤ Always(); |
Actions: |
¤ SetSwitch(Switch 1, Set); |
Left Foot Trigger:
Trigger |
Description: |
Walk Sound Left Foot |
|
Players: |
¤ Player who hears the footsteps. |
Conditions: |
¤ Bring(P1, Exactly, 0, Men, SF1);
|
¤ Bring(P1, Exactly, 0, Men, SF2);
|
¤ Switch(Switch 1, Set); |
Actions: |
¤ MoveLocation(SF2, Men, P1, Anywhere);
|
¤ PlayWAV("staredit\\wav\\WALKSOUND1.wav");
|
¤ SetSwitch(Switch 2, Set);
|
¤ SetSwitch(Switch 1, Clear);
|
¤ PreserveTrigger(); |
Now the right foot trigger:
Trigger |
Description: |
Player who hears the footsteps. |
|
Conditions: |
¤ Bring(P1, Exactly, 0, Men, SF1);
|
¤ Bring(P1, Exactly, 0, Men, SF2);
|
¤ Switch(Switch 2, Set); |
Actions: |
¤ MoveLocation(P1SF1, Men, P1, Anywhere);
|
¤ PlayWAV("staredit\\wav\\WALKSOUND2.wav");
|
¤ SetSwitch(Switch 2, Clear);
|
¤ SetSwitch(Switch 1, Set);
|
¤ PreserveTrigger(); |
The start switch just starts the triggers...
Basically what it does, is it plays 2 alternating walk sounds (The Switches) . And when the guy stops walking the sounds stop. The sounds should also coordinate with the foot steps of the unit (Locations that are the size of a unit footstep).
HOW IT WORKS:
When the unit is not in the locations, it will move the location on to the unit, and play the First walk sound, and set the switch to the other trigger, and when the unit is not in the locations , the other sound trigger will move the location on the unit and play the Second walk sound will play, and set the switch back to the first trigger, and with the preserve trigger, it will loop.
I thought it was neet when I found out.
For you guys that want to make your Starcraft rpg things have a little extra.
Got some other cool concepts too. Will post later though.
If you don't understand email me.