Radomized Faces Script

3 views
Skip to first unread message

Kommiekat

unread,
Jan 24, 2013, 10:21:48 PM1/24/13
to virtuou...@googlegroups.com
Hey guys, here is a new script from Twirly that has to be tested out:

Twirly says the aviation glasses has to be done in the Description.ext.
I think this script can be use as Friendly User. In other words, you can code it for African faces, Afghan faces, Asian faces, and you can choose which side as in Blufor, Opfor and Independents.
Give it a go!

/*

        Change the faces of all units on the map to African faces.

*/


sleep
1;

_allunits  
= allUnits;
_sides
= [RESISTANCE,CIVILIAN];
_face
= "Face28";

for "_i" from 0 to (count _allunits)-1 do {

        _unit
= _allunits select _i;

       
if (side _unit in _sides) then {
                _rand
= floor (random 2);
               
switch (_rand) do {
                       
case 0: {
                                _num
= 26 + (floor (random 15));
                                _face
= format ["Face%1",_num];
                       
};

                       
case 1: {
                                _num
= 78 + (floor (random 9));
                                _face
= format ["Face%1",_num];
                       
};
               
};

                _unit setFace _face
;
               
//_unit disableConversation true;
       
};
        sleep
0.01;
};


Reply all
Reply to author
Forward
0 new messages