Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
CharacterIdentityComponent.c
Go to the documentation of this file.
1/*
2===========================================
3Do not modify, this script is generated
4===========================================
5*/
6
11
15
19class 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 Sets wound state for specific bodyPart.
34 \param bodyPart Name of the part to be changed
35 \param wound Whether part should be wounded or not.
36 */
37 proto external bool SetWoundState(string bodyPart, bool wound);
42 proto external bool IsCovered(string bodyPart);
43 /*
44 Reuse currently stored Identity
45 As an example
46 CharacterIdentityComponent identityComponent = CharacterIdentityComponent.Cast( soldierEntity.FindComponent(CharacterIdentityComponent));
47 if (!identityComponent)
48 return;
49 VisualIdentity visId = identityComponent.GetIdentity().GetVisualIdentity();
50 visId.SetHead("{24D28E910BF9F648}Prefabs/Characters/Heads/Head_Asian_02.et");
51 identityComponent.CommitChanges();
52 */
53 proto external void CommitChanges();
55 proto external Identity GetIdentity();
60 proto external bool CheckIdentityIDs(int alias, int name, int surname, int soundIdentity, int visualIdentity);
65 proto external bool SetIdentityFromIDs(int alias, int name, int surname, int soundIdentity, int visualIdentity);
67 proto external void SetIdentity(Identity cfg);
68
69 // callbacks
70
71 event void OnBodyPartStateChanged(string bodyPart, bool visible, bool wounded);
72}
73
bool IsCovered()
Whether hitzone submeshes are hidden with clothing.
proto external void SetIdentity(Identity cfg)
Set the identity to the player, and replicates the identity to clients.
CharacterIdentityComponentClass GameComponentClass GetHeadEntity()
proto external void SetHeadAlpha(int a)
event void OnBodyPartStateChanged(string bodyPart, bool visible, bool wounded)
proto external bool CheckIdentityIDs(int alias, int name, int surname, int soundIdentity, int visualIdentity)
proto external bool SetIdentityFromIDs(int alias, int name, int surname, int soundIdentity, int visualIdentity)
proto external void SetVisibleAll(bool visible)
proto external void CommitChanges()
proto external bool SetWoundState(string bodyPart, bool wound)
proto external Identity GetIdentity()
Get identity of this character.