Search found 1 match

by Rotn240
Mon Aug 14, 2017 10:32 am
Forum: Modding help
Topic: Recovering my character ?
Replies: 3
Views: 2163

Re: Recovering my character ?

Well, after a few headaches, I found that this should do the trick in single player mode :
function find_lost_character()
surf = game.get_surface(1)
for ch in surf.get_chunks() do
a = {{ch.x * 32, ch.y * 32}, {ch.x * 32 + 32, ch.y * 32 + 32}}
for k, entity in pairs(surf.find_entities_filtered ...

Go to advanced search