[HELP] BF2 Python related questions
Posted: 2014-01-12 19:50
I didn't find a thread like this and I'm predicting I'm going to do a lots of questions regarding this.
And to start off, a simple "Hello World", how can I achieve this?
I changed the" __init__.py" in phyton/game
Added my "helloWorld.py" module
But whener I try it in-game, nothing appears and in the console I get "rcon: you can only invoke login" (or something like that)
BF2.timer, how does this works?
I created the following module
First I get a crash, why any ideias? And second does this means every 5(seconds/minutes/days/years?) everyone gets one kill?
How do I lower the health of a player?
More to be asked, but for the moment these are fine.
And to start off, a simple "Hello World", how can I achieve this?
I changed the" __init__.py" in phyton/game
Code: Select all
import realityinit
import helloWorld
realityinit.init(False)
helloWorld.init()
Code: Select all
import host
def init():
host.rcon_invoke("game.sayAll Hello World")
BF2.timer, how does this works?
I created the following module
Code: Select all
import bf2
def init():
bf2.Timer(battleTimmer, 5, 1)
def battleTimmer():
host.rcon_invoke("game.sayAll Timmer")
for p in bf2.playerManager.getPlayers():
p.score.kills += 1
How do I lower the health of a player?
More to be asked, but for the moment these are fine.