Jump to content
Sign in to follow this  
BoweryBaker

hollering group of rushing soldiers

Recommended Posts

i am thinking up a script that will go with a voice file that you can have an entire squad of soldiers on activation start hollering and screaming their war cry when the battle starts. If you'd like to help please message me mr. scriptor. thank you.

Share this post


Link to post
Share on other sites

init.sqs:

stopcrying = false

warcryaction = (leader MyGroup) addaction ["Start shouting!","warcrystart.sqs"]

warcrystart.sqs:

_user = _this select 1

?_user != (leader MyGroup): exit

_user removeaction warcryaction

warcrystopaction = (leader MyGroup) addaction ["Stop shouting!","warcrystop.sqs"]

#loop

?stopcrying: warcryaction = (leader MyGroup) addaction ["Start shouting!","warcrystart.sqs"]; exit

_units = units MyGroup

_screams = ["scream1","scream2","scream3","scream4","scr

eam5","scream6"]

_randunit = random (count _units)

_unit = (_units select (_randunit - (_randunit mod 1)))

_randscream = random (count _screams)

_unit say (_screams select (_randscream - (_randscream mod 1)))

~5+(random 5)

goto "loop"

warcrystop.sqs:

_user = _this select 1

?_user != (leader MyGroup): exit

_user removeaction warcrystopaction

stopcrying = true

exit

description.ext:

class CfgSounds

{

sounds[]={scream1,scream2,scream3,scream4,scream5,scream6};

class scream1{name = "scream1";sound[] = {"scream1.ogg", db, 1.0};titles[] = {};};

class scream2{name = "scream2";sound[] = {"scream2.ogg", db, 1.0};titles[] = {};};

class scream3{name = "scream3";sound[] = {"scream3.ogg", db, 1.0};titles[] = {};};

class scream4{name = "scream4";sound[] = {"scream4.ogg", db, 1.0};titles[] = {};};

class scream5{name = "scream5";sound[] = {"scream5.ogg", db, 1.0};titles[] = {};};

class scream6{name = "scream6";sound[] = {"scream6.ogg", db, 1.0};titles[] = {};};

};

I Hope that helps you get started. I just made that as I wrote, so be careful there might pop out errors if you try it.

/edit

Note that the above won't work in Multiplayer

Share this post


Link to post
Share on other sites

That's a cool idea man. I thought of it ,but you actually attempted to make it. I got a screaming sound file if you want a group of warriors rushing at you guns blazing.

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  

×