Add attention target to debug info
This commit is contained in:
parent
03fd4dfd1c
commit
71039ca26a
@ -428,6 +428,13 @@ function mobf_debug.rightclick_callback(entity,player)
|
||||
print("MOBF: \t\t " .. k .. ": " .. v.value)
|
||||
end
|
||||
end
|
||||
|
||||
local attention_name = tostring(entity.dynamic_data.attention.most_relevant_target)
|
||||
|
||||
if (entity.dynamic_data.attention.most_relevant_target:is_player()) then
|
||||
attention_name = entity.dynamic_data.attention.most_relevant_target:get_player_name()
|
||||
end
|
||||
print("MOBF: \tTop attention object: " .. attention_name)
|
||||
if entity.dynamic_data.graphics.last_fps ~= nil then
|
||||
print("MOBF: Animating with: " .. entity.dynamic_data.graphics.last_fps .. " fps")
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user