@@ -64,12 +64,6 @@ 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-
7367/* *
7468 * <library>omp_npc</library>
7569 */
@@ -475,12 +469,12 @@ native bool:NPC_IsInvulnerable(npcid);
475469 * <summary>Kills an NPC with a specific weapon/reason.</summary>
476470 * <param name="npcid">The ID of the NPC to kill</param>
477471 * <param name="killerid">The ID of the player who killed the NPC (optional, use INVALID_PLAYER_ID for no killer)</param>
478- * <param name="reason">The weapon ID or reason for death</param>
472+ * <param name="reason">The weapon ID or reason for death (default: 255 for suicide) </param>
479473 * <returns>Returns true on success, false on failure.</returns>
480474 * <seealso name="NPC_IsDead" />
481475 * <seealso name="NPC_SetHealth" />
482476 */
483- native NPC_Kill (npcid, killerid = INVALID_PLAYER_ID, WEAPON: reason = 0 );
477+ native NPC_Kill (npcid, killerid = INVALID_PLAYER_ID, WEAPON: reason = 255 );
484478
485479/*
486480native # Weapons & Combat();
@@ -722,22 +716,22 @@ native NPC_GetWeaponActualClipSize(npcid, WEAPON:weaponid);
722716 * <library>omp_npc</library>
723717 * <summary>Sets the weapon skill level for an NPC.</summary>
724718 * <param name="npcid">The ID of the NPC</param>
725- * <param name="skill">The weapon skill type</param>
719+ * <param name="skill">The weapon skill type (WEAPONSKILL) </param>
726720 * <param name="level">The skill level to set (0-999)</param>
727721 * <returns>Returns true on success, false on failure.</returns>
728722 * <seealso name="NPC_GetWeaponSkillLevel" />
729723 */
730- native bool: NPC_SetWeaponSkillLevel (npcid, skill, level);
724+ native bool: NPC_SetWeaponSkillLevel (npcid, WEAPONSKILL: skill, level);
731725
732726/* *
733727 * <library>omp_npc</library>
734728 * <summary>Gets the weapon skill level of an NPC.</summary>
735729 * <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>
730+ * <param name="skill">The weapon skill type (WEAPONSKILL) </param>
731+ * <returns>Returns the weapon skill level (0-999), or UNKNOWN_WEAPONSKILL on failure.</returns>
738732 * <seealso name="NPC_SetWeaponSkillLevel" />
739733 */
740- native NPC_GetWeaponSkillLevel (npcid, skill);
734+ native NPC_GetWeaponSkillLevel (npcid, WEAPONSKILL: skill);
741735
742736/*
743737native # Vehicles();
@@ -749,7 +743,7 @@ native
749743/* *
750744 * <library>omp_npc</library>
751745 */
752- native bool: NPC_EnterVehicle (npcid, vehicleid, seatid, NPC_MOVE_TYPE: moveType);
746+ native bool: NPC_EnterVehicle (npcid, vehicleid, seatid, NPC_MOVE_TYPE: moveType = NPC_MOVE_TYPE_JOG );
753747
754748/* *
755749 * <library>omp_npc</library>
0 commit comments