SA-MP Forums Archive
GivePlayerWeapon on NPC - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: GivePlayerWeapon on NPC (/showthread.php?tid=329773)



GivePlayerWeapon on NPC - clavador - 30.03.2012

Shouldn't this give a weapon to an NPC?

I know it's a lame question, but last time i tried that I think it worked ( 1 year ago I think ).

Today I was just messing around with NPC's and I couldn't make them hold a weapon.

I created just 1 npc in a blank gamemode, use: GivePlayerWeapon to the npc's id and nothing happens.


Re: GivePlayerWeapon on NPC - captainjohn - 30.03.2012

If this is what you are talking about.

To make an NPC hold a weapon whilst walking about, I think you have to record that NPC with the weapon in. Then save it.


Re: GivePlayerWeapon on NPC - clavador - 30.03.2012

Quote:
Originally Posted by captainjohn
View Post
If this is what you are talking about.

To make an NPC hold a weapon whilst walking about, I think you have to record that NPC with the weapon in. Then save it.
No, I'm just talking about giving a weapon an idle npc.