L L4D2node

Decider C++ CRuleScriptBridge

3 own methods

An isolated instance of a rulescript database.

Methods

callable on a Decider script handle
Script Function Returns Parameters Description
AddRule (Binding_AddRuleFromScript) bool hscript AddRule(CRule) : Add a CRule object (defined in rulescript_base.nut)
FindAllMatches (Binding_FindAllMatches) hscript hscript, float Binding_FindAllMatches(query,leeway) : Returns an array of all matching responses. If leeway is nonzero, all results scoring within 'leeway' of the best score return.
FindBestMatch (Binding_FindBestMatch) hscript hscript Binding_FindBestMatch(query) : Query the database and return the best result found. If multiple of equal score found, an arbitrary one returns.