Add attention target to debug info

This commit is contained in:
sapier 2013-08-18 18:59:34 +02:00
parent 03fd4dfd1c
commit 71039ca26a

View File

@ -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