Jump to content
Sign in to follow this  
daimyo21

Making entire side execute trigger?

Recommended Posts

Ok, title sounds confusing but basically Im trying to create simple zombies. I have custom sounds and I want to make it so they play these sounds on condition player distance zombie <5 meters.

I dont want to have to name every zombie so is there a way to make one side like "Independent" or "Opfor" all run this sound trigger when player is within 5 meters?

Thanks!

Share this post


Link to post
Share on other sites

Why not just add the trigger to the player

trigname attachto [player,[0,0,0]]

Then set the trigger

Axis A 5 Axis B 5

OPFOR

Present

Repeating

Share this post


Link to post
Share on other sites
Why not just add the trigger to the player

trigname attachto [player,[0,0,0]]

Then set the trigger

Axis A 5 Axis B 5

OPFOR

Present

Repeating

Thats a good idea thank!

Now i dont want to ask for too much but is there a way to make directional sound? So if it was a zombie hissing id hear it from behind? if too complicated dont worry about it.

Share this post


Link to post
Share on other sites

I would say yes but it's not something I've done. When the trigger goes off you will know who set it of by placing this in the on act of the trigger.

who = thislist select 0;

If you had another trigger name (soundtrig) with a sound (I know nothing about how to play a sound) you could attach that trigger to the unit

who = thislist select 0; soundtrig attachto [who,[0,0,0]];

Something along those lines.

Share this post


Link to post
Share on other sites

Try using "say"....That makes the sound directional.

who say "your sound";

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×