Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
CharacterIdentityComponent.c
Go to the documentation of this file.
1 /*
2 ===========================================
3 Do not modify, this script is generated
4 ===========================================
5 */
6 
13 {
14 }
15 
19 class CharacterIdentityComponent: GameComponent
20 {
21  proto external IEntity GetHeadEntity();
22  /*
23  Sets the Alpha for the head.
24  \param a target Aplha between 0-255
25  */
26  proto external void SetHeadAlpha(int a);
27  /*
28  Sets the visibility of all submeshes.
29  \param visible Whether all submeshes should be drawn or not.
30  */
31  proto external void SetVisibleAll(bool visible);
32  /*
33  Returns the visibility of all submeshes.
34  \return Returns whether all submesh visibility is enabled or not.
35  */
36  proto external bool IsVisibleAll();
37  /*
38  Sets wound state for specific bodyPart.
39  \param bodyPart Name of the part to be changed
40  \param wound Whether part should be wounded or not.
41  */
42  proto external bool SetWoundState(string bodyPart, bool wound);
47  proto external bool IsCovered(string bodyPart);
48  /*
49  Reuse currently stored Identity
50  As an example
51  CharacterIdentityComponent identityComponent = CharacterIdentityComponent.Cast( soldierEntity.FindComponent(CharacterIdentityComponent));
52  if (!identityComponent)
53  return;
54  VisualIdentity visId = identityComponent.GetIdentity().GetVisualIdentity();
55  visId.SetHead("{24D28E910BF9F648}Prefabs/Characters/Heads/Head_Asian_02.et");
56  identityComponent.CommitChanges();
57  */
58  proto external void CommitChanges();
60  proto external Identity GetIdentity();
65  proto external bool CheckIdentityIDs(int alias, int name, int surname, int soundIdentity, int visualIdentity);
70  proto external bool SetIdentityFromIDs(int alias, int name, int surname, int soundIdentity, int visualIdentity);
72  proto external void SetIdentity(Identity cfg);
73 
74  // callbacks
75 
76  event void OnBodyPartStateChanged(string bodyPart, bool visible, bool wounded);
77 }
78 
IsCovered
proto external bool IsCovered(string bodyPart)
Identity
Definition: Identity.c:12
OnBodyPartStateChanged
event void OnBodyPartStateChanged(string bodyPart, bool visible, bool wounded)
GameComponentClass
Definition: GameComponentClass.c:7
GetHeadEntity
CharacterIdentityComponentClass GameComponentClass GetHeadEntity()
SetVisibleAll
proto external void SetVisibleAll(bool visible)
SetIdentity
proto external void SetIdentity(Identity cfg)
Set the identity to the player, and replicates the identity to clients.
CharacterIdentityComponentClass
Definition: CharacterIdentityComponent.c:12
SetWoundState
proto external bool SetWoundState(string bodyPart, bool wound)
SetHeadAlpha
proto external void SetHeadAlpha(int a)
IsVisibleAll
proto external bool IsVisibleAll()
CommitChanges
proto external void CommitChanges()
GetIdentity
proto external Identity GetIdentity()
Get identity of this character.
CheckIdentityIDs
proto external bool CheckIdentityIDs(int alias, int name, int surname, int soundIdentity, int visualIdentity)
SetIdentityFromIDs
proto external bool SetIdentityFromIDs(int alias, int name, int surname, int soundIdentity, int visualIdentity)
GameComponent
Definition: GameComponent.c:12