@@ -64,6 +64,12 @@ const INVALID_NODE_ID = -1;
6464const INVALID_RECORD_ID = - 1 ;
6565# define INVALID_RECORD_ID (- 1 )
6666
67+ /* *
68+ * <library>omp_npc</library>
69+ */
70+ const INVALID_WEAPON_SKILL_LEVEL = - 1 ;
71+ # define INVALID_WEAPON_SKILL_LEVEL (- 1 )
72+
6773/* *
6874 * <library>omp_npc</library>
6975 */
@@ -712,6 +718,27 @@ native NPC_GetWeaponClipSize(npcid, WEAPON:weaponid);
712718 */
713719native NPC_GetWeaponActualClipSize (npcid, WEAPON: weaponid);
714720
721+ /* *
722+ * <library>omp_npc</library>
723+ * <summary>Sets the weapon skill level for an NPC.</summary>
724+ * <param name="npcid">The ID of the NPC</param>
725+ * <param name="skill">The weapon skill type</param>
726+ * <param name="level">The skill level to set (0-999)</param>
727+ * <returns>Returns true on success, false on failure.</returns>
728+ * <seealso name="NPC_GetWeaponSkillLevel" />
729+ */
730+ native bool: NPC_SetWeaponSkillLevel (npcid, skill, level);
731+
732+ /* *
733+ * <library>omp_npc</library>
734+ * <summary>Gets the weapon skill level of an NPC.</summary>
735+ * <param name="npcid">The ID of the NPC</param>
736+ * <param name="skill">The weapon skill type</param>
737+ * <returns>Returns the weapon skill level (0-999), or <b><c>INVALID_WEAPON_SKILL_LEVEL</c></b> on failure.</returns>
738+ * <seealso name="NPC_SetWeaponSkillLevel" />
739+ */
740+ native NPC_GetWeaponSkillLevel (npcid, skill);
741+
715742/*
716743native # Vehicles();
717744native Vehicles(
0 commit comments