What is the enemy force?

Place to get help with not working mods / modding interface.
ficolas
Smart Inserter
Smart Inserter
Posts: 1068
Joined: Sun Feb 24, 2013 10:24 am
Contact:

What is the enemy force?

Post 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

drs9999
Filter Inserter
Filter Inserter
Posts: 831
Joined: Wed Mar 06, 2013 11:16 pm
Contact:

Re: What is the enemy force?

Post by drs9999 »

It should be game.force.enemy

ficolas
Smart Inserter
Smart Inserter
Posts: 1068
Joined: Sun Feb 24, 2013 10:24 am
Contact:

Re: What is the enemy force?

Post by ficolas »

drs9999 wrote:It should be game.force.enemy
I also tried that, and it doesnt seem to work

drs9999
Filter Inserter
Filter Inserter
Posts: 831
Joined: Wed Mar 06, 2013 11:16 pm
Contact:

Re: What is the enemy force?

Post 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}

Post Reply

Return to “Modding help”