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

Method GetItemWeight

ogsr_engine/xrGame/script_game_object4.cpp:362–371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

360}
361
362float CScriptGameObject::GetItemWeight()
363{
364 CInventoryItem* e = smart_cast<CInventoryItem*>(&object());
365 if (!e)
366 {
367 ai().script_engine().script_log(ScriptStorage::eLuaMessageTypeError, "CInventoryItem : cannot access class member GetItemWeight!");
368 return 0.f;
369 }
370 return e->Weight();
371}
372
373u32 CScriptGameObject::InvBoxCount()
374{

Callers

nothing calls this directly

Calls 3

script_logMethod · 0.80
objectFunction · 0.50
WeightMethod · 0.45

Tested by

no test coverage detected