Page 1 of 1

Console command for Ammo types.

Posted: Sun Oct 26, 2014 11:06 pm
by Myaskol
Heya guys,

I've lost my campaign progress and map 2 is kinda a pain ( those amounts are insane ) and i would like to cheat some ammo.
I've checked out the wiki: https://forums.factorio.com/wiki/inde ... s_magazine

but when i try:

Code: Select all

game.player.insert{name="piercing-rounds-magazine",count=100}
it doesnt work at all. Do you guys have any idea how to spawn those?

Re: Console command for Ammo types.

Posted: Sun Oct 26, 2014 11:37 pm
by FishSandwich
Try:

Code: Select all

game.player.character.insert{name = "piercing-bullet-magazine", count = 100}

Re: Console command for Ammo types.

Posted: Sun Oct 26, 2014 11:39 pm
by Boogieman14
Looks like the internal name is piercing-bullet-magazine, so try

Code: Select all

 game.player.insert{name="piercing-bullet-magazine",count=100}
*edit* Fish was faster....

To still add some extra info, I found this by looking at C:\Program Files\Factorio\data\base\prototypes\item\ammo.lua

Re: Console command for Ammo types.

Posted: Sun Oct 26, 2014 11:41 pm
by Myaskol
thank you both!