02-03-2016, 02:54 PM
(02-03-2016, 02:44 PM)Lightspeed link Wrote: that didn't seem to work but I found this one:
Geez, define "didn't seem to work". If you look closely, this is the exact same code I posted just compressed.
Quote:Code:
if(Isserver)then{
FaceArray = ["AfricanHead_01","AfricanHead_02","AfricanHead_03"];
{if((side _x) == east)then{_x setface (FaceArray select (random(round(count facearray))))};}foreach allunits;
};
"if (isserver)" is wrong. setFace has a local effect. You'll get away with this if it is all AI and no Zeus in game, but it is better to leave it out.
I don't need luck, I have ammo.