Page 1 of 1

What is the enemy force?

Posted: Thu Jul 11, 2013 4:11 pm
by ficolas
I tried with game.enemy.force, but enemy is not a field, and I also tried looping throught the game table, but I see nothing...
Help plz

Re: What is the enemy force?

Posted: Fri Jul 12, 2013 8:26 am
by drs9999
It should be game.force.enemy

Re: What is the enemy force?

Posted: Fri Jul 12, 2013 11:07 am
by ficolas
drs9999 wrote:It should be game.force.enemy
I also tried that, and it doesnt seem to work

Re: What is the enemy force?

Posted: Fri Jul 12, 2013 12:38 pm
by drs9999
oops.. sorry it is forceS

So e.g.

Code: Select all

game.createentity{name="creeper",position=game.player.character.position,force=game.forces.enemy}