Jump to content
Sign in to follow this  

setName using identities.hpp

Recommended Posts



I've been trying to modify the civilian presence module by BIS to be used on community ported maps like Chernarus. I've got this code working so far (Put in "Code On Unit Created"): 

//	Set clothes
_civs	=	[ 
//	Factory

//	Forest

//	Town

//	City

//	Gay

//	Village
_loadOut = getUnitLoadOut (selectRandom _civs);  
_this setUnitLoadout _loadOut;

//	SetFace
 _num = round Random 23; 
_face = ["whiteHead_", _num] joinString "";
if (isServer) then {[_this, _face] remoteExec ["setFace", 0, _this]};

//	SetName

However their names are still greek. Since Bohemia didn't allow us to select a faction but rather "Auto detects" whether we're on Tanoa or Altis using this module in a community made map is 99% of the time going to be a pain. 


Is there anyway to use 

#include "rhsafrf\addons\rhs_c_troops\identities.hpp"

and grab names from identities.hpp files like you do in mods? 

Use use setName to turn Garkos Kortas into Roman Bytchok? 

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