BIS fnc setIdentity: Difference between revisions
Lou Montana (talk | contribs) (Add 1.92 info) |
Lou Montana (talk | contribs) m (Fix) |
||
(One intermediate revision by the same user not shown) | |||
Line 7: | Line 7: | ||
|arg= global | |arg= global | ||
|eff= | |eff= global | ||
|descr= Sets the unit's identity. | |descr= Sets the unit's identity. | ||
{{Feature|informative|When executed on server, the identity will be [[Multiplayer Scripting#Join In Progress|JIP]] compatible.}} | {{Feature|informative| | ||
* When executed on server, the identity will be [[Multiplayer Scripting#Join In Progress|JIP]] compatible. | |||
* Before {{GVI|arma3|1.92}}, this function was {{Icon|serverExec|32}}. | |||
}} | |||
|s1= [object, face, speaker, pitch, callsign, name, glasses] call [[BIS_fnc_setIdentity]] | |s1= [object, face, speaker, pitch, callsign, name, glasses] call [[BIS_fnc_setIdentity]] | ||
Line 16: | Line 19: | ||
|p1= object: [[Object]] | |p1= object: [[Object]] | ||
|p2= face: [[String]] - (Optional, default "") face from CfgFaces | |p2= face: [[String]] - (Optional, default "") face from {{Link|Arma 3: CfgIdentities#Faces|CfgFaces}} | ||
|p3= speaker: [[String]] - (Optional, default "") speaker from CfgVoice | |p3= speaker: [[String]] - (Optional, default "") speaker from {{Link|Arma 3: CfgIdentities#Speakers|CfgVoice}} | ||
|p4= pitch: [[String]] - (Optional, default -1) speaker pitch (1 is | |p4= pitch: [[String]] - (Optional, default -1) speaker pitch (1 is normal pitch, 2 = chipmunk, 0.5 = Darth Vader, etc) | ||
|p5= callsign: [[String]] - (Optional, default "") callsign | |p5= callsign: [[String]] - (Optional, default "") callsign | ||
Line 27: | Line 30: | ||
|p6since= arma3 1.92 | |p6since= arma3 1.92 | ||
|p7= glasses: [[String]] - (Optional, default [[nil]]) glasses | |p7= glasses: [[String]] - (Optional, default [[nil]]) glasses from {{Link|Arma 3: CfgGlasses|CfgGlasses}} - use "" to remove glasses | ||
|p7since= arma3 1.92 | |p7since= arma3 1.92 | ||
Latest revision as of 15:18, 23 June 2025
Description
- Description:
- Sets the unit's identity.
- Execution:
- call
- Groups:
- Object Manipulation
Syntax
- Syntax:
- [object, face, speaker, pitch, callsign, name, glasses] call BIS_fnc_setIdentity
- Parameters:
- object: Object
- face: String - (Optional, default "") face from CfgFaces
- speaker: String - (Optional, default "") speaker from CfgVoice
- pitch: String - (Optional, default -1) speaker pitch (1 is normal pitch, 2 = chipmunk, 0.5 = Darth Vader, etc)
- callsign: String - (Optional, default "") callsign
- since
1.92
- name: String - (Optional, default "") unit name
- since
1.92
- glasses: String - (Optional, default nil) glasses from CfgGlasses - use "" to remove glasses
- Return Value:
- Boolean
Examples
- Example 1:
- Example 2:
Additional Information
- See also:
- BIS_fnc_setUnitInsignia setFace setIdentity setSpeaker face
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note