blackboard::getblackboardattribute()
Returns the blackboard attribute. BO3's decompiled scripts carry no docs for this one: the description is ours, from its name and use.
Signature
blackboard::getblackboardattribute(entity, attributename)
Needs #using the script that defines it (scripts/shared/ai/systems/blackboard.gsc).
Parameters
| Name |
|---|
| entity |
| attributename |
The decompiled scripts don't keep default values, so some of these may be optional: check the real uses below.
Real uses in BO3's scripts
Called 77 times in the decompiled scripts. A few, zombies first:
- scripts/zm/archetype_genesis_keeper_companion.gsc, line 1448
var_9b627b75 = blackboard::getblackboardattribute(self, "_keeper_protector_attack_type"); - scripts/zm/archetype_zod_companion.gsc, line 212
if(blackboard::getblackboardattribute(entity, "_stance") != "stand") - scripts/shared/ai/archetype_aivsaimelee.gsc, line 296
currentstance = blackboard::getblackboardattribute(behaviortreeentity, "_stance"); - scripts/shared/ai/archetype_apothicon_fury.gsc, line 342
locomotionspeed = blackboard::getblackboardattribute(entity, "_locomotion_speed"); - scripts/shared/ai/archetype_civilian.gsc, line 163
if(blackboard::getblackboardattribute(entity, "_stance") != "stand")
More in blackboard::
- blackboard::setblackboardattribute()Sets the blackboard attribute.
- blackboard::registerblackboardattribute()Registers blackboard attribute.
- blackboard::createblackboardforentity()Creates blackboard for entity.
New to GSC?
Start with the basics, or paste a compile error to get the fix.
Built-in descriptions, parameters and examples come from Treyarch's BO3 mod tools docs. Usage links point at shiversoftdev/t7-source (decompiled BO3 scripts).