BIS fnc kbCreateDummy: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Add description and examples)
m (Some wiki formatting)
 
(26 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function|Comments=
{{RV|type=function
____________________________________________________________________________________________


| tkoh |Game name=
|game1= tkoh
|version1= 1.00


|1.00|Game version=
|game2= arma3
____________________________________________________________________________________________
|version2= 0.50


| Creates a dummy speaker (as a [[Game Logic]]). If given dummy variable has already been created, returns this one. |DESCRIPTION=
|gr1= Conversations
____________________________________________________________________________________________


| dummyVarName call [[BIS_fnc_kbCreateDummy]] |SYNTAX=
|descr= Creates a dummy speaker (as a [[Game Logic]]). If given dummy variable has already been created, returns this one.


|p1= dummyVarName: [[String]] - can be anything, but if an identity from [[Description.ext#CfgIdentities|CfgIdentities]] the dummy will take this identity. |PARAMETER1=
|s1= dummyVarName call [[BIS_fnc_kbCreateDummy]]


| [[Object]] - dummy speaker game logic |RETURNVALUE=
|p1= dummyVarName: [[String]] - can be anything, but if an identity from [[Description.ext#CfgIdentities|CfgIdentities]] the dummy will take this identity.
____________________________________________________________________________________________


|x1= <code>[[private]] _dummySpeaker = "BIS_dummySpeaker" [[call]] [[BIS_fnc_kbCreateDummy]]; {{cc|_dummySpeaker {{=}}{{=}} BIS_dummySpeaker now}}</code> |EXAMPLE1=
|r1= [[Object]] - dummy speaker game logic


|x2= <code>[[private]] _dummySpeaker = "Miller" [[call]] [[BIS_fnc_kbCreateDummy]]; {{cc|given '''Miller''' is defined in [[Description.ext#CfgIdentities|CfgIdentities]]}}</code> |EXAMPLE2=
|x1= <sqf>private _dummySpeaker = "BIS_dummySpeaker" call BIS_fnc_kbCreateDummy; // _dummySpeaker == BIS_dummySpeaker now</sqf>
____________________________________________________________________________________________


| [[Conversations]] |SEEALSO=
|x2= <sqf>private _dummySpeaker = "Miller" call BIS_fnc_kbCreateDummy; // given Miller is defined in CfgIdentities</sqf>
 
|seealso= [[Conversations]]
}}
}}
<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:Functions|{{uc:kbCreateDummy}}]]
[[Category:{{Name|tkoh}}: Functions|{{uc:kbCreateDummy}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:kbCreateDummy}}]]
[[Category:Function Group: Conversations|{{uc:kbCreateDummy}}]]

Latest revision as of 22:35, 12 July 2022

Hover & click on the images for description

Description

Description:
Creates a dummy speaker (as a Game Logic). If given dummy variable has already been created, returns this one.
Execution:
call
Groups:
Conversations

Syntax

Syntax:
dummyVarName call BIS_fnc_kbCreateDummy
Parameters:
dummyVarName: String - can be anything, but if an identity from CfgIdentities the dummy will take this identity.
Return Value:
Object - dummy speaker game logic

Examples

Example 1:
private _dummySpeaker = "BIS_dummySpeaker" call BIS_fnc_kbCreateDummy; // _dummySpeaker == BIS_dummySpeaker now
Example 2:
private _dummySpeaker = "Miller" call BIS_fnc_kbCreateDummy; // given Miller is defined in CfgIdentities

Additional Information

See also:
Conversations

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