The forums will be going offline for an extended maintenance period at 1400hrs GMT on 19th June 2025. The number of hours for this downtime is intentionally not advertised due to the nature of these upgrades.
×
- 0
monster game id on death
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
Kurofly
Hello there
I've been looking for a way to get the gid of a monster when he dies by using the OnNPCDieEvent label but since I'm like really really bad at source stuff none of the things I tried worked out, could you lend me a hand please?
I guess I would have to edit this part in the mob.c file :
the "killedrid" variable is set to the mob id and I'd like to get its game id, I'd probably name it "killedgid".
Thanks in advance
Link to comment
Share on other sites
8 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.