Jump to content
Sign in to follow this  
Rommel

Adding Camo Faces to AllUnits

Recommended Posts

Just thought this may be handy, I can't see any bugs with it, if someone can report this actually works then that would be great, otherwise feel free to use it yourselves.

In your init.sqf or anywhere really

{
if (alive _x /*and not (isplayer _x)*/) then 
	private["_i","_j"];
	_i=ceil(random 99);
	_j=ceil(random 6);
	if (_i < 10)then{
		_x setface format["face0%1_camo%2",_i,_j];
	}else{
		_x setface format["face%1_camo%2",_i,_j];
	};
	sleep 0.01;
};
} foreach allUnits;

A note to all, setFace isn't global, so each player will see different camo faces, but this is really a problem with AI; and barely noticeable.

Share this post


Link to post
Share on other sites

Forcing camouflage faces onto players in Multiplayer (only works in multiplayer). However each player will have different faces, but will be the same each time (is based off players UID, unchanging between games).

Inside your init.sqf

_uid = toArray(str(getPlayerUID player));
{_uid set [_i, _x - 48]; _i = _i + 1} foreach _uid;
_a = _uid select 0;_b = _uid select 1;_c = _uid select 2; 
if (_c > 6) then {_c = _c - 6};
player setface format["face%1%2_camo%3",_a,_b,_c];

:yay:

Share this post


Link to post
Share on other sites

I tryed both and couldn't get any one to work. I pasted your code in my init.sqf, is there anything else to do?

Share this post


Link to post
Share on other sites

How do I get my profile's character to have facepaint? (I don't wanna do everyone.. but I would like it..)

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  

×