kbAddDatabase: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "\|x([0-9])= <sqf>([^\/: ]+)([^;])<\/sqf>" to "|x$1= <sqf>$2$3;</sqf>")
 
(63 intermediate revisions by 11 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|KBADDDATABASE]]
{{RV|type=command
[[Category:Scripting Commands ArmA|KBADDDATABASE]]


|game1= arma2
|version1= 1.00


<h2 style="color:#000066">'''''person'' kbAddDatabase ''filename'''''</h2>
|game2= arma2oa
|version2= 1.50


|game3= tkoh
|version3= 1.00


'''Operand types:'''
|game4= arma3
|version4= 0.50


'''person:''' [[Object]]
|gr1= Conversations


'''filename:''' [[String]]
|descr= Register knowledge base database to given person. See [[Conversations]] for more details.
{{Feature|important|This command is no longer available in {{arma2}} and {{arma3}}.}}


'''Type of returned value:'''
|s1= person [[kbAddDatabase]] fileName


[[Boolean]]
|p1= person: [[Object]]


'''Compatibility:'''
|p2= fileName: [[String]]


Version 2.42 required.
|r1= [[Boolean]]


'''Description:'''
|x1= <sqf>_hasBeenAdded = _unit kbAddDatabase "chat.txt";</sqf>


Register knowledge base database to given person.
|seealso= [[Conversations]] [[kbAddTopic]] [[kbHasTopic]] [[kbTell]] [[kbWasSaid]] [[kbReact]] [[kbRemoveTopic]] [[kbAddDatabaseTargets]] [[FSM]] [[FSM Editor]]
 
}}
 
'''Example:'''
 
_unit '''kbAddDatabase''' "chat.txt"

Latest revision as of 22:42, 28 June 2022

Hover & click on the images for description

Description

Description:
Register knowledge base database to given person. See Conversations for more details.
This command is no longer available in Arma 2 and Arma 3.
Groups:
Conversations

Syntax

Syntax:
person kbAddDatabase fileName
Parameters:
person: Object
fileName: String
Return Value:
Boolean

Examples

Example 1:
_hasBeenAdded = _unit kbAddDatabase "chat.txt";

Additional Information

See also:
Conversations kbAddTopic kbHasTopic kbTell kbWasSaid kbReact kbRemoveTopic kbAddDatabaseTargets FSM FSM Editor

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