Mafia Scene - Mafia I & II Game Fan Site
Modders Corner => Mafia Editing => Mafia II mods => Topic started by: zzzzzz2 on August 16, 2012, 12:38:58 PM
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. (//wp-content/uploads/invision_emoticons/sad.png)" data-emoticon="" srcset="/wp-content/uploads/invision_emoticons/sad@2x.png 2x" width="20" height="20">
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"
<div class="ipsSpoiler_header">
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)
</div>
Tutorial how to use the "Injector":
<div class="ipsSpoiler_header">
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")
</div>
After pressing F1 in the folder "pc" appears the file "accords.txt". And there are the coordinates <img src="/wp-content/uploads/invision_emoticons/smile.png" alt="(//smile.gif)" data-emoticon="" srcset="/wp-content/uploads/invision_emoticons/smile@2x.png 2x" width="20" height="20">
Oh,real great,I konw how to use it,Thank you! <img src="/wp-content/uploads/invision_emoticons/smile.png" alt="(//smile.gif)" data-emoticon="" srcset="/wp-content/uploads/invision_emoticons/smile@2x.png 2x" width="20" height="20">
QuoteOh' date='real great,I konw how to use it,Thank you! <img src="/wp-content/uploads/invision_emoticons/smile.png" alt="(//smile.gif)" data-emoticon="" srcset="/wp-content/uploads/invision_emoticons/smile@2x.png 2x" width="20" height="20"> [/quote']
You are welcome <img src="/wp-content/uploads/invision_emoticons/wink.png" alt="(//wink.gif)" 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 :cool: