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

Making or wanting help making your own asset? Check in here
Post Reply
Fastjack
PR:BF2 Contributor
Posts: 525
Joined: 2011-09-04 19:47

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

Post by Fastjack »

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: Select all

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
WendigoTheDrunk
Posts: 1
Joined: 2018-06-05 19:24

Re: Create Bot and attach to ...whatever...

Post by WendigoTheDrunk »

(Sorry for Necro) Did you ever find out how?
Post Reply

Return to “PR:BF2 Community Modding”