SendDeathInfo: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
retvals=This function does not return any specific values.| | retvals=This function does not return any specific values.| | ||
example=<source lang="lua"> | example=<source lang="lua"> | ||
function | function ICantTakeItAnyMore | ||
{ | { | ||
SendDeathInfo( 70, 255, 0 ); | SendDeathInfo( 70, 255, 0 ); | ||
} | } | ||
</source>| | </source>| | ||
relfuncs=*[[SendShotInfo]] | relfuncs=*[[SendShotInfo]] | ||
}} | }} |
Revision as of 04:27, 20 November 2022
Description:
This sends packet to server so that server treats npc as killed ( by a player ) and shows the death message.
Parameters:
( weaponId, killerId, bodypartId )
weaponId : The same as weapon IDs on server side.
killerId : The ID of the killer who 'killed' the npc.
bodypartId : The bodypart the npc was hit.
Return Values:
This function does not return any specific values.
Example
function ICantTakeItAnyMore { SendDeathInfo( 70, 255, 0 ); }
Related Functions
The following functions may be helpful as they relate to this function in one way or another.