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

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?

3 replies
13 years, 5 months ago
#6660

How to know the coordinates in Mafia2 ?

 

Just like this coordinate (-1303.05, 986.05,-17.33) is the bed of vito’s home in Greenfield.

 

Sorry for my bad English. sad.png” data-emoticon=”” srcset=”/wp-content/uploads/invision_emoticons/sad@2x.png 2x” width=”20″ height=”20″>

13 years, 5 months ago
#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″>

13 years, 5 months ago
#15124

Oh,real great,I konw how to use it,Thank you! <img decoding=” data-emoticon=”” srcset=”/wp-content/uploads/invision_emoticons/smile@2x.png 2x” width=”20″ height=”20″>

13 years, 5 months ago
#15125

Oh’ date=’real great,I konw how to use it,Thank you! <img decoding=” data-emoticon=”” srcset=”/wp-content/uploads/invision_emoticons/smile@2x.png 2x” width=”20″ height=”20″> [/quote’]

You are welcome <img decoding=” data-emoticon=”” srcset=”/wp-content/uploads/invision_emoticons/wink@2x.png 2x” width=”20″ height=”20″> If questions will be, contact us. In this site questions without answers do not remain 😎

  • You must be logged in to reply to this topic.