MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / GetNonscriptUsable

Method GetNonscriptUsable

ogsr_engine/xrGame/script_game_object_use.cpp:46–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46bool CScriptGameObject::GetNonscriptUsable() const
47{
48 CUsableScriptObject* l_tpUseableScriptObject = smart_cast<CUsableScriptObject*>(&object());
49 if (!l_tpUseableScriptObject)
50 {
51 ai().script_engine().script_log(ScriptStorage::eLuaMessageTypeError, "SetNonscriptUsable . Reason: the object is not usable");
52 return false;
53 }
54 else
55 return l_tpUseableScriptObject->nonscript_usable();
56}
57
58Fvector CScriptGameObject::GetCurrentDirection()
59{

Callers

nothing calls this directly

Calls 3

script_logMethod · 0.80
nonscript_usableMethod · 0.80
objectFunction · 0.50

Tested by

no test coverage detected