Forum Jump :

Author Message


Posts: 39
Rank:


Level: Member

Country: us
Location: Republic of Texas
Occupation: Propoly Pythoneer
Age:
In-game name:

 
#1 Posted at 2015-12-13 06:45        
     
I have Isla Duala enabled and currently am editing a mission on it.

I have an identity I wanted to set on someone. I added a cop and set his identity in the initialization field: jakos setIdentity "Cpt_Prinsloo";. My Description.ext file went into the ArmA 2 folder in Documents where the user-saved mission and the 'missions' folder are at.

My CfgIdentities file contains the following:

class CfgIdentities
{
class Cpt_Prinsloo
{
name="Cpt. Prinsloo";
face="Face26";
glasses="None";
speaker="Male05ENG";
pitch=1.1;
};
};

Every time I run the mission, even after reloading the mission file or exiting/entering the editor to accept those changes, ends up making sure that Captain Prinsloo is shown as "Cop (M9 Pistol)", not "Cpt. Prinsloo".

I hope someone would help correct what I did wrong.


Author Message


Posts: 1189
Rank:


Level: Member

Country: tr
Location:
Occupation: Computer Science student
Age: 23
In-game name: Wak

 
#2 Posted at 2015-12-13 09:20        
     
I don't know why it's not working, everything seems to be in order. You can try to change his face and name with the setFace and setName commands instead.

jakos setFace "Face26";
jakos setName "Cpt. Prinsloo";

Sometimes I like to think as I started the whole "earplugs" thing.

W0lle: The only advice I can give you is: Do not try to understand BI. You will not succeed and it only makes your brain go boom. I would even go so far and say that not even they understand their own actions :-D.

#define getDamage getDammage

Advertisement


Author Message

W0lle  

call me evil


Posts: 1968
Rank:


Country: de
Location:
Occupation: CWR III Project Leader
Age: 104
In-game name:

 
#3 Posted at 2015-12-13 11:21        
     
I think you misunderstood the setIdentity command.

The "Cop (M9 Pistol)" is the description for the unit given by the addon maker. It will never change, no matter what you try because it's in the config of the addon.

With setIdentity you only can overwrite:
- The random name given to the unit (shown in dialogues, chats etc)
- The Face and glasses
- The voice and pitch


Author Message


Posts: 1589
Rank:


Level: Member

Country: pf
Location: Tahiti
Occupation: too many Arma
Age: 60
In-game name: Kobayashi Maru

 
#4 Posted at 2015-12-13 16:54        
     
This should work. I'm using also cfgIdentities in description.ext and setIdentity in init field of units.
Just be sure face26 is an existing face in cfgFaces (accessible from config viewer in editor).

PLEASE CONTACT ME ON BI FORUMS FOR ANY SCRIPT / MOD QUESTION. TKS

Author Message


Posts: 39
Rank:


Level: Member

Country: us
Location: Republic of Texas
Occupation: Propoly Pythoneer
Age:
In-game name:

 
#5 Posted at 2015-12-13 21:08        
     
# 654wak654 : I don't know why it's not working, everything seems to be in order. You can try to change his face and name with the setFace and setName commands instead.

jakos setFace "Face26";
jakos setName "Cpt. Prinsloo";

It's working. I saw Face26 when I placed different units. They all showed 'Face26' every time the mission loaded; that means it's working.

# W0lle : I think you misunderstood the setIdentity command.

The "Cop (M9 Pistol)" is the description for the unit given by the addon maker. It will never change, no matter what you try because it's in the config of the addon.

With setIdentity you only can overwrite:
- The random name given to the unit (shown in dialogues, chats etc)
- The Face and glasses
- The voice and pitch

Ah, gotcha, W0lle. So that's what setIdentity was for. I assumed that once you changed the identity, the unit description naturally changes. Unfortunately, that's not the case. :P I have checked again to see if the face showed up in any unit I selected. For every unit that I picked, they went with Face26 so that's showing me it's working as intended.

# Pierre MGI : This should work. I'm using also cfgIdentities in description.ext and setIdentity in init field of units.
Just be sure face26 is an existing face in cfgFaces (accessible from config viewer in editor).

How does one access the config viewer in the Editor? I already have the BIS Wiki on bookmark to check for ArmA 2/OA faces so I could check there and pick any face.