How do I use this admin command?

Ask questions, discuss ideas, get answers

How do I use this admin command?

Postby professor_smith » Tue Jan 23, 2018 5:50 am

Hello Folks,
My name is Joshua Hales (known as Professor_Smith in the Bf1942 forums and Grand_Admiral on the servers). I am working on playtesting & doing finishing touches for my minimod, HTroop v1.1, but in the mod near the end of most maps, there are usually bot scouts (using the rocketpack) up in the air, avoiding getting wacked by their opponents. However, the problem, is that they are so smart, that they refuse to come down out of the air, unless there are no enemies around at the time.
So, I looked up some admin commands, and found this one:

game.killPlayer [ID]

I know I can type this into the admin console to have effect, and I think I can use it to kill off any rocketpack hovering scouts refusing to let the map end. However, how do I know what number ID or whatever ID, should go in the [ID] slot? Also, do I use the brackets [ and ], in the command?

I was also wondering if there was a way (a command or a button I can program in) to kill all the remaining bots at the same time in a map?

Thank You,

Joshua Hales
Professor Smith
Lets make war games, not war.
Posts: 101
Joined: Thu Dec 13, 2012 7:45 am

Re: How do I use this admin command?

Postby Swaffy » Tue Jan 23, 2018 6:45 am

Perhaps you can add an overheat to the jetpacks?
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
Posts: 1712
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: How do I use this admin command?

Postby russ » Tue Jan 23, 2018 7:48 am

Use game.listPlayers

You might need to use AI.killBotId or AI.killBotName. AI.killAllBots might come in handy too.
Posts: 73
Joined: Sun Oct 29, 2017 8:12 am

Return to 1942 Modding Discussion

Who is online

Users browsing this forum: No registered users and 23 guests