BFHModsBFHeroes 42
RSS
 

Get Adobe Flash player



 





Page 1 of 11
Forum moderator: Chubby 
Forum » Battlefield heroes » Battlefield Heroes moding » Position tracker mod? Does anyone have one?
Position tracker mod? Does anyone have one?
EZmodzDate: Wednesday, 2010-08-04, 8:47 AM | Message # 1
Private
Group: Users
Messages: 10
Awards: 0
Reputation: 0
Status: Offline
Is it possible to track your position coordinates on a BFH map? For example: (110.386/183.914/20.363)

Is there a mod for that? Anyone?

Thanks.

 
McFluffDate: Wednesday, 2010-08-04, 12:38 PM | Message # 2
Lieutenant colonel
Group: Administrators
Messages: 103
Awards: 1
Reputation: 12
Status: Offline
-Moved to the corect section

 
FreezeDate: Thursday, 2010-08-05, 1:55 AM | Message # 3
Private
Group: Users
Messages: 15
Awards: 0
Reputation: 0
Status: Offline
Yes, you need to use Python.

I'll edit this post with one in a minute.

Code
import host

def init():
      host.registerHandler('PlayerDeath', onPlayerDeath)

def onPlayerDeath(victim, vehicle):
      loc = str(vehicle.getPosition())
      host.rcon_invoke('game.sayAll "' + loc + '"')

Save that as coord.py

go to Battlefield Heroes\mods\bfheroes\python\game\gamemodes

edit __init__.py

put this in there

Code
import coord
coord.init()

Should do it, but I haven't tested it. If it works, when you commit suicide it'll give you the coordinates.

Message edited by Freeze - Thursday, 2010-08-05, 2:02 AM
 
Forum » Battlefield heroes » Battlefield Heroes moding » Position tracker mod? Does anyone have one?
Page 1 of 11
Search:








 
Statistics Forum
Recent Posts Readable topic Top Users New User
  • [mod] Dedicated Servers
  • [community] make me a mod
  • Battlefield Heroes'42
  • so close on getting a chopper ...
  • [TUTORIAL] How to start moddin...
  • Mods, Caught on Tape/Screensho...
  • [TUTORIAL] How to make custom ...
  • Battlefield Heroes'42
  • My mods
  • how to add new buildings?
  • Apache_Thunder
  • McFluff
  • SgtColbert
  • Philly
  • Conorman
  • Dutchassasin
  • Mrtn
  • Solidsnail
  • wakamonkey
  • SwiftGreen
  • karlosdelluka
  • gamervajiko
  • GANS1917
  • traimientayts
  • gergoforma1
  • mvja12013
  • taylormmocollege
  • Prevé
  • ansh12kumar
  • dasarandasaran11
  • Based on the game Battlefield Heroes By Electronic Arts™ and DICE™ | By using this website you agree to our Tearms Of Use
    Some images are taken from JW Renders, check it outs it has some cool stuff. Some translations provided by uCause.esigned by CENTROARTS