_unit = _this select 0
_face = _this select 1
_type = typeOf _unit
;caucasian
_type1a = [soldier1,soldier2]
;asian
_type2a = [soldier3,soldier4]
;african
_type3a =[soldier5,soldier6]
?([_type] in _type1a):goto "type1"
?([_type] in _type2a):goto "type2"
?([_type] in _type3a):goto "type3"
HINT "Error : Player unit not Llauma head"
exit
#type1
_facePath = FORMAT ["\LlaumaFace\caucasian\%1.paa",_face]
_player setobjecttexture _faceFull
exit
#type2
_facePath = FORMAT ["\LlaumaFace\asian\%1.paa",_face]
_player setobjecttexture _faceFull
exit
#type3
_facePath = FORMAT ["\LlaumaFace\african\%1.paa",_face]
_player setobjecttexture _faceFull
exit
Easy enough. [player,face2] exec "script.sqs"
In that script, you need to put all the caucasian solider class names in that array, same with asians and africans. Then if it's african soldier classname, it applys
\LlaumaHead\african\face1.paa
If it's caucasian,
\LlaumaHead\caucasian\face1.paa
I'll have a look at the Dialouge creator program, might manage to make something useable outta it.. Maybe..
- Ben