Quantcast
Channel: Project Reality Forums - PR:BF2 Community Modding
Viewing all articles
Browse latest Browse all 924

Create Bot and attach to ...whatever...

$
0
0
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? :?:

Code:

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

Viewing all articles
Browse latest Browse all 924

Trending Articles