BIS fnc setIdentity: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Delete BIS_fnc_MP forevah)
m (Text replacement - "(\|p[0-9]+ *= *[^(]+\(Optional(, default[^)]*)\) )S([a-z])" to "$1s$3")
 
(31 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function|Comments=
{{RV|type=function
____________________________________________________________________________________________


| arma3 |Game name=
|game1= arma3
|version1= 1.00


|1.00|Game version=
|gr1= Object Manipulation


|arg= global |MPARGUMENTS=
|arg= global
|eff= local


|eff= local |MPEFFECT=
|descr= Sets the unit's identity.
____________________________________________________________________________________________
{{Feature | Informative | When executed on server, the identity will be [[Multiplayer Scripting#Join In Progress|JIP]] compatible.}}


| Sets the unit's identity.
|s1= [object, face, speaker, pitch, callsign] call [[BIS_fnc_setIdentity]]
{{Informative | When executed on server, the identity will be [[JIP]] compatible.}} |Description=
____________________________________________________________________________________________


| [object, face, speaker, pitch, callsign] call [[BIS_fnc_setIdentity]] |Syntax=
|p1= object: [[Object]]
____________________________________________________________________________________________


|p0= object: [[Object]] |Parameter 0=
|p2= face: [[String]] - (Optional, default "") face from CfgFaces


|p1= face: [[String]] - (Optional, default "") Face from CfgFaces |Parameter 1=
|p3= speaker: [[String]] - (Optional, default "") speaker from CfgVoice


|p2= speaker: [[String]] - (Optional, default "") Speaker from CfgVoice |Parameter 2=
|p4= pitch: [[String]] - (Optional, default -1) speaker pitch (1 is unchanged pitch)


|p3= pitch: [[String]] - (Optional, default -1) Speaker pitch (1 is unchanged pitch) |Parameter 3=
|p5= callsign: [[String]] - (Optional, default "") callsign


|p4= callsign: [[String]] - (Optional, default "") Callsign |Parameter 4=
|r1= [[Boolean]]


| [[Boolean]] |Return value=
|x1= <sqf>[player, "Kerry", "Male01ENGB", 1.05, "Big Daddy"] call BIS_fnc_setIdentity;</sqf>
____________________________________________________________________________________________


|x1= <code>[<nowiki/>[[player]], "Kerry", "Male01ENGB", 1.05, "Big Daddy"] [[call]] [[BIS_fnc_setIdentity]];</code> |Example 1=
|seealso= [[BIS_fnc_setUnitInsignia]] [[setFace]] [[setIdentity]] [[setSpeaker]] [[face]]
____________________________________________________________________________________________
 
| [[BIS fnc setUnitInsignia]],[[setFace]], [[setIdentity]], [[setSpeaker]], [[face]] |See also=
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Objects|{{uc:setIdentity}}]]
[[Category:Functions|{{uc:setIdentity}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:setIdentity}}]]

Latest revision as of 13:32, 8 November 2023

Hover & click on the images for description

Description

Description:
Sets the unit's identity.
When executed on server, the identity will be JIP compatible.
Execution:
call
Groups:
Object Manipulation

Syntax

Syntax:
[object, face, speaker, pitch, callsign] 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 unchanged pitch)
callsign: String - (Optional, default "") callsign
Return Value:
Boolean

Examples

Example 1:
[player, "Kerry", "Male01ENGB", 1.05, "Big Daddy"] call BIS_fnc_setIdentity;

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