Kadafi 10 Posted October 22, 2011 hey guyz Cud someone show me a script dat brings the soldiers 2 cheer? thx :bounce3: Share this post Link to post Share on other sites
Tankbuster 1733 Posted October 22, 2011 We prefer English on these forums. Share this post Link to post Share on other sites
Rydygier 1302 Posted October 22, 2011 If I understand correctly, what is needed... for example simple stopgap; "cheer.sqs": _soldier = _this select 0 _soldier setmimic "smile" _first = 0 #waiting1 _i = random 100 ? (_i > 50) : goto "start" ~0.5 goto "waiting1" #start _rnd0 = random 100 _rnd1 = round (random 28) + 1 _rnd2 = round (random 5) + 1 ? (_rnd0 > 50) and (_first == 0) : _soldier switchmove ("c7a_bravoTOerc_idle" + str _rnd1); _first = 1 ? (_rnd0 <= 50) and (_first == 0) : _soldier switchmove ("c7a_bravoTOerc_idle" + str _rnd2); _first = 1 ? (_rnd0 > 50) : _soldier playmove ("c7a_bravoTOerc_idle" + str _rnd1) ? (_rnd0 <= 50) : _soldier playmove ("c7a_bravoTOerc_idle" + str _rnd2) #waiting2 ~5 _i = random 100 ? (_i > 75) : goto "start" goto "waiting2" And init field of every unit, which has to cheer: [this] exec "cheer.sqs" other moves here: http://community.bistudio.com/wiki/ArmA2:_Moves As for the shouting, you can add to the script some "say3d" commands, perhaps also with randomization: Say3D But it requires sound files in yours mission folder and corresponding entries in file "description.ext" similar to this: class CfgSounds { sounds[] = {}; class Yeah { name = "Yeah"; sound[] = {"Yeah.ogg", 1, 1}; titles[] = {}; }; class Yeah2 { name = "Yeah2"; sound[] = {"Yeah2.ogg", 1, 1}; titles[] = {}; }; }; then add to "cheer.sqs" something like this directly above #waiting2: _rnd3 = random 100 ? (_rnd3 < 10) : _soldier say3d "Yeah" ? (_rnd3 >= 10) and (_rnd3 < 20) : _soldier say3d "Yeah2" etc... Share this post Link to post Share on other sites
Kadafi 10 Posted October 22, 2011 yeah, it works, thank you for ya help Share this post Link to post Share on other sites
Guest Posted October 22, 2011 A few rules you may have missed which apply to everyone on this forum: §22) Use descriptive thread titlesIf you start a new thread, please make sure your thread title explains what you want without forcing people to read through your post first. Thread titles such as "How in the world do I...", "Need help!" or "Will we ever see..." are anything but descriptive. We do not allow these kind of titles and threads with such titles are subject to be closed. §13) Write in EnglishPlease write only in English on the public forums. Avoid writing in any other language or [b[any kind of slang or txt speak since the majority of the members most likely won't understand[/b]. In private messages you are of course welcome to write in any language you wish. Share this post Link to post Share on other sites