Reply To: How to know the coordinates in Mafia 2?

Home / Forums / Modders Corner / Mafia Editing / Mafia II mods / How to know the coordinates in Mafia 2? / Reply To: How to know the coordinates in Mafia 2?

Bank Notes: 880
August 16, 2012 at 1:11 pm #15122

First download this lua injector:http://mafiascene.net/downloads/viewdownload/4-mafia-tools/504-injector-6

then, copy all files to “mafia2/pc”

 

Copy this script to the “F1.txt” in the folder “userscripts”

 

function loginf(log_text)log_text=”.) “..log_text..”n”

f=assert(io.open(“coords.txt”, “a+”))

f:write(i,log_text)

io.close(f)

end

playerPos=game.game:GetActivePlayer():GetPos()

playerDir=game.game:GetActivePlayer():GetDir()

 

if i==nil then i=0 end

i=i+1

loginf(playerPos.x..”, “..playerPos.y..”, “..playerPos.z)

loginf(playerDir.x..”, “..playerDir.y..”, “..playerDir.z)

 

 

Tutorial how to use the “Injector”:

 

 

1. Copy the script into the “F1.txt” in the folder “userscripts”

2. Run the game

3. Minimize the game

4. Run the “MafiaInjector.exe”

5. Go back to the game

6. Press the key “F1”

 

PS: You can also copy the script in any document (located in the folder “userscripts”). But then in the game you’ll need to press the corresponding button (from “F1” to “F12”)

 

After pressing F1 in the folder “pc” appears the file “accords.txt”. And there are the coordinates <img decoding=” data-emoticon=”” srcset=”/wp-content/uploads/invision_emoticons/smile@2x.png 2x” width=”20″ height=”20″>