project reality header
Go Back   Project Reality Forums > PR:BF2 Mod Forums > PR:BF2 Community Modding
11 Dec 2018, 00:00:00 (PRT)
Register Forum RulesDeveloper Blogs Project Reality Members List Search Today's Posts Mark Forums Read
PR:BF2 Community Modding Making or wanting help making your own asset? Check in here

Thread Tools Display Modes
Old 2016-07-03, 22:46   #1
PR:BF2 Contributor

Fastjack's Avatar
Default Create Bot and attach to ...whatever...

Good evening gents,

I have a question about this codelines and maybe someone is here who knows how that works.
Sofar i understood, i can spawn via objectspawner any pco object and add a bot with a kit in it.
Is that right?

Requires Kit, Side and Name as argument
rem *** Create Bot and attach to  ***
game.createAndSpawnAIPlayer v_arg3 v_arg2 v_arg1 
ai.addBot v_arg3 v_arg2 StandardWeights NoEquipment
Work this in BF2 engine or is it only a not working legacy of 1942?

Would be nice if someone knows that part of modding because i cant find anything that helps me.

Thx in Advance
Fastjack is offline Reply With Quote
Old 2018-06-05, 20:35   #2
Default Re: Create Bot and attach to ...whatever...

(Sorry for Necro) Did you ever find out how?
WendigoTheDrunk is offline Reply With Quote

attach, bot, create
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

All times are GMT. The time now is 18:07.