BIS fnc kbCreateDummy: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Function|Comments= | {{Function|Comments= | ||
| tkoh |Game name= | | tkoh |Game name= | ||
Line 7: | Line 6: | ||
|gr1 = Conversations |GROUP1= | |gr1 = Conversations |GROUP1= | ||
| Creates a dummy speaker (as a [[Game Logic]]). If given dummy variable has already been created, returns this one. |DESCRIPTION= | | Creates a dummy speaker (as a [[Game Logic]]). If given dummy variable has already been created, returns this one. |DESCRIPTION= | ||
| dummyVarName call [[BIS_fnc_kbCreateDummy]] |SYNTAX= | | dummyVarName call [[BIS_fnc_kbCreateDummy]] |SYNTAX= | ||
Line 17: | Line 14: | ||
| [[Object]] - dummy speaker game logic |RETURNVALUE= | | [[Object]] - dummy speaker game logic |RETURNVALUE= | ||
|x1= <code>[[private]] _dummySpeaker = "BIS_dummySpeaker" [[call]] [[BIS_fnc_kbCreateDummy]]; {{cc|_dummySpeaker {{=}}{{=}} BIS_dummySpeaker now}}</code> |EXAMPLE1= | |x1= <code>[[private]] _dummySpeaker = "BIS_dummySpeaker" [[call]] [[BIS_fnc_kbCreateDummy]]; {{cc|_dummySpeaker {{=}}{{=}} BIS_dummySpeaker now}}</code> |EXAMPLE1= | ||
|x2= <code>[[private]] _dummySpeaker = "Miller" [[call]] [[BIS_fnc_kbCreateDummy]]; {{cc|given '''Miller''' is defined in [[Description.ext#CfgIdentities|CfgIdentities]]}}</code> |EXAMPLE2= | |x2= <code>[[private]] _dummySpeaker = "Miller" [[call]] [[BIS_fnc_kbCreateDummy]]; {{cc|given '''Miller''' is defined in [[Description.ext#CfgIdentities|CfgIdentities]]}}</code> |EXAMPLE2= | ||
| [[Conversations]] |SEEALSO= | | [[Conversations]] |SEEALSO= |
Revision as of 23:30, 16 January 2021
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