Posts: 89
Threads: 15
Joined: Feb 2010
Reputation:
0
Hello.
I got all my bots working now but, after looking up how to give my bots a weapon or change hes skin i didn't find anything.
Could anyone please show me how it's done?
Thanks.
P.S - If there's already a post about this i'm sorry.I haven't fully checked the forums.
Posts: 2,896
Threads: 11
Joined: Sep 2008
Reputation:
0
Read the tutorial on how to create an NPC. It's simple to figure out, just read carefully.
Posts: 89
Threads: 15
Joined: Feb 2010
Reputation:
0
Wait...so I need to create a new variable?
ex:
new botweapon;
new botskin;
botweapon = GivePlayerWeapon(playerid, 1, 1000);
botskin = Setplayerskin(playerid, 162);
Then use it on the playerspawn?
If i'm wrong can you please tell me where in the tutorial is that thanks.
Posts: 44
Threads: 9
Joined: Jul 2008
Reputation:
0
Yeah, just place those lines anywhere which is called in the NPC script
So, let's say you put the lines which give the bot a weapon under the callback for when it's spawned, it will just give it to them
Another alternative is that your bot script somehow calls a function in another script which gives whichever playerid that calls it the weapon